View Full Version : Events in gridpanel

27 Jan 2011, 12:14 AM
I have a Gridpanel which has multiple columns. One of the columns is boolean field. I want to know the count of total true values in that column and based on that count i need to show that onto a label.
I have CheckboxSelectionModel, whose MultiSelect option is true.
Also, whenever makes a change in the column through edit, that label should get updated.

27 Jan 2011, 1:33 AM
Dear Anshu,

Will row gets selected when you check or uncheck the column on the behalf of which your label has to be changed? Making my question simpler, does checking or unchecking your boolean column affects the row selection?

Prabhat Kumar

27 Jan 2011, 1:49 AM
No. It toggles the state of the boolean column. I just need to track only those fields whose state is true. State can be changed by selection of a particular row. So i also need to know the status on load of store.

27 Jan 2011, 2:20 AM
Create a function which will loop over the store and count the records which has boolean column (say boolclm) is true. Call this function at the check event of the column and load of the store.

Can you attach your grid panel code for reference if possible.