Results 1 to 2 of 2

Thread: How to get the index of selected row after each Sort?

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    9
    Vote Rating
    0
      0  

    Default Unanswered: How to get the index of selected row after each Sort?

    According to my rquirement I want to get the index of the selected row of a grid, whenever a sort event&amp;nbsp; (the default one of EXT JS4 )occurs.<br>Please help.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,389
    Answers
    716
    Vote Rating
    498
      0  

    Default

    You create a listener for the grid to get this information:

    Code:
    this.grid.getSelectionModel().on('select', function(selModel, model, idx) {
    }, this);
    Regards,
    Scott.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •