1. #1
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    2
    Vote Rating
    0
    kinamu is on a distinguished road

      0  

    Question CheckboxSelectionModel and sort by its checked records

    Is there any possibility to sort an grid which is using a CheckboxSelectionModel by its selected (checked) items?
    I want to display the checked records on the top the grid! All unchecked records should follow the checked items. I didn't find a proper solution to realize that, because sorting seems to work only with record's fields but the check marker is no field of the record.
    I'm using ExtJS 3.3.1.

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,774
    Vote Rating
    372
    skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute

      0  

    Default

    There may be a better way but you could have a dummy field in the store that holds the value of the checkbox. Using listeners on the selection model it should be possible to keep the field value correct, setting it using the record's set() method.

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    2
    Vote Rating
    0
    kinamu is on a distinguished road

      0  

    Default

    Okay I'm going to try to do it in this way...
    But sounds complicate for a simple task

Thread Participants: 1

Tags for this Thread