PDA

View Full Version : header checkbox is not showing up in Infinite grid



offshoreteam
8 May 2013, 4:53 AM
We are implementing infinite grid which has checkbox column with header checkbox. We are using selModel of the grid panel to new Ext.selection.CheckboxModel() which shows checkbox column with header checkbox. Also to implement infinite grid we are setting buffered property to true of Ext.data.JsonStore, however when we set buffered property to true then check all checkbox in the header is not showing up. When we set buffered property to false then only it is appearing.

Que. How to get the check all checkbox with infinite grid?

JsonStore Code :



var store = Ext.create('Ext.data.JsonStore', {
model: 'ProjectMatchesModel',
buffered: false,
pageSize: 100,
proxy: {
type: 'ajax',
url: actionUrl,
reader: {
type: 'json',
root: 'data',
totalProperty: 'totalCount',
successProperty: 'success'
}
},
sorters: gridStateObject.sorters,
remoteFilter: true,
autoLoad: true
});


Checkbox Selection Model Code:



var selectionModel = new Ext.selection.CheckboxModel(
{
showHeaderCheckbox: true,
listeners: {
select: function (t, record, index, eOpts) {
// some code
}
}
});


And grid panel code :



grid = Ext.create('Ext.grid.Panel', {
store: store,
id: 'projectMatchesGrid',
cls: 'common-grid',
columnLines: true,
columns: gridStateObject.gridColumns,
height: 500,
viewConfig: {
emptyText: '<b>No Records Found</b>'
},
selModel: selectionModel,
features: [filters],
collapsible: true,
animCollapse: false,
header: false,
renderTo: 'project-matches-grid',

evant
8 May 2013, 5:00 AM
This is covered in the docs:



When buffered is set to true, this configuration will not be available because the buffered data set does not always contain all data.

offshoreteam
8 May 2013, 5:17 AM
Thanks for your reply.

In that case, can't we use checkbox selection model with infinite grid?
Can you please suggest any workaround for this problem? I have to implement checkall checkbox and infinite grid altogether.


Thanks in Advance.

offshoreteam
9 May 2013, 11:23 PM
Can anybody answer this question please ?

harikrishnaBura
18 Jul 2013, 4:23 AM
Hi evant,

We are Implementing Buffer Grid which has checkbox column with header checkbox.

May i Know this Issue is still in Open state. If it is Closed can you suggest me how to do this Changes.


Thanks in Advance.