[CLOSED] How to get selected row index on row selection in client side?

  1. #1

    [CLOSED] How to get selected row index on row selection in client side?

    Hi,

    Please provide us a solution for getting selected row Index on RowSelection event in client side...
    Last edited by Daniil; Nov 14, 2013 at 6:10 AM. Reason: [CLOSED]
  2. #2
    Hi @speedstepmem4,

    An index of selected record is passed to a RowSelectionModel's Select listener as the "index" argument.
    http://docs.sencha.com/extjs/4.2.0/#...l-event-select
  3. #3

    How to get selected row index on row selection in client side?

    Hi Daniil,

    Thanks for the reply!!

    Actually We are using Ajax Proxy to fill the grid. So the first row of the second page also shows row index as 0 which is not correct.
    Actually it should be 16, since we are showing 15 records in the first page!
  4. #4
    When you use remote paging, only the current page is presented in the GridPanel. So, it is actually the first row (with 0 index).

    To get an index of total, please try:
    this.store.indexOfTotal(record)
    inside a Select listener.
  5. #5

    How to get selected row index on row selection in client side?

    Hi Daniil,

    Now it's working fine. You mark this issue as closed.

Similar Threads

  1. MultiCombo - Determine if Selection Client Side
    By Tbaseflug in forum 2.x Help
    Replies: 1
    Last Post: Oct 12, 2012, 11:56 PM
  2. Replies: 3
    Last Post: Oct 05, 2012, 11:44 AM
  3. Replies: 2
    Last Post: Dec 29, 2011, 10:05 PM
  4. [CLOSED] [1.0] Colorpalette client-side color selection
    By betamax in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 09, 2010, 2:51 PM
  5. Gridpanel = Get Selected Row Index - Client Side
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Sep 15, 2009, 11:23 PM

Posting Permissions