PDA

View Full Version : Infinite grid with checkbox in header



arulface
16 May 2013, 8:56 PM
Hi, I have seen that ExtJs 4.2 has the infinite grid to bring all the rows in scroll itself. Would that be possible to add checkbox in the grid header to select all the row in the grid. Thanks in advance

talalsid
16 May 2013, 10:07 PM
Yes its possible to add checkbox in grid header.Call "selectionModel" method from "selModel" attribute of the grid.

Code:
selectionModel : new Ext.grid.CheckboxSelectionModel({
singleSelect: false,
checkOnly: true
}
),

arulface
16 May 2013, 10:51 PM
Thanks a lot for the reply.
This is what my understanding now.
I can add checkbox in buffer/infinite grid header to select/deselect all in my grid.