Results 1 to 2 of 2

Thread: Checbox Selection Model in grid

  1. #1
    Ext JS Premium Member
    Join Date
    May 2008

    Default Checbox Selection Model in grid

    Can somebody please let me know how can I check a row in a grid that uses Ext.selection.CheckboxModel. I need to select a row by Id of the record that is displayed in the grid. I get the id from some where else. I cannot use select by index function. I cannot select the row by passing the record object in select function as I don't have access to the original record object. I tried to create a new Record object but that doesn't help, it seems that grid stores the selected records by reference and not by some kind of Id.

    I need this for implementing Select All functionality in infinite grid. Currently the Ext 4.1 grid checks only those rows that are present in the buffer and does not check the rows that are not fetched yet. Due to this when user click Select All and then scrolls down in the grid then the rows are still unchecked.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL


    The checkbox model has select methods that you can use. The issue with infinite grid is that the data in the store is only what is visible.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:

    Posts are my own, not any current, past or future employer's.

Posting Permissions

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