1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    4
    Vote Rating
    0
    brking is on a distinguished road

      0  

    Default Unanswered: how to capture grid checkbox deselection

    Unanswered: how to capture grid checkbox deselection


    I'm new to 3.x ad trying to figure out how to simply capture each checkbox grid select/deselect event. I need to take action on the model when this happens. I don't see how the existing events help in this regard. The SelectionChangedHandler seems to give me ALL selected items (no info on deselection) and the SelectionHandler only fires when selection happens, not deselection. Am I missing something obvious here ? I don't want to have to traverse my entire model list whenever a new selection happens (I'm using multiple selection mode). This was dirt simple in 2.2.5 because you could bind the selected state to a boolean property on the model. Thanks.

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,241
    Answers
    1
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    I think your best bet will be to keep a list of selected items and update the list each time a selection changed event fires. Each time a selection changed event fires you can compare the current list of selected items with the new list passed in the event (or the selected items in the store). You can then tell if any items were deselected before updating your list of selected items. The list of the selected items could be references to the models themselves, or could be their keys.

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    4
    Vote Rating
    0
    brking is on a distinguished road

      0  

    Default


    Thanks, I was hoping to avoid that but would work. Is there no longer way to bind the checkbox column state directly to a boolean property on the model ?

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar