I am trying to bind checkbox field to gird with select all options -
xtype: 'grid', store: { type: 'webapi', api: { read: 'api/Report/GetIfo' }, autoLoad: true, }, columns: [ { header: 'Name', dataIndex: 'first_name'} ], selModel: { selType: 'checkboxmodel', //dataIndex:'flag', //showHeaderCheckbox: true }
I am trying to bind the dataIndex to it so that when grid is loaded, respective checkbox will be selected.
I tried by using
selModel: { selType: 'checkboxmodel', //dataIndex:'flag', //showHeaderCheckbox: true }
But no success. Please suggest me on how to bind the dataIndex here.