[CLOSED] Get the rowIndex of the selected row

  1. #1

    [CLOSED] Get the rowIndex of the selected row

    grid.getSelectionModel().getSelected().rowIndex
    ????
    Last edited by geoffrey.mcgill; Jan 23, 2011 at 3:52 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use .indexOf(record) method of store.

    Example
    var store = grid.getStore();
    store.indexOf(grid.getSelectionModel().getSelected())

Similar Threads

  1. [CLOSED] [1.0] Access to record by rowIndex
    By edigital in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 11, 2011, 12:59 PM
  2. [CLOSED] How to get gridpanel's rowIndex in the example below?
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 25, 2011, 1:51 PM
  3. [CLOSED] get rowindex for grid
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 09, 2010, 3:20 PM
  4. rowIndex in GetRowClass - possible?
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Sep 23, 2009, 10:25 PM
  5. Combo - Populate with rowindex values
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Sep 21, 2009, 11:25 AM

Posting Permissions