Reputation: 211
In a table column I have check boxes which gives me indicator whether i make any changes in it, I want to show the changes made in the message text. e.g (000 unsaved changes). I have used xtype:'checkcolumn'. How to get count for changes i made in check box.
{
xtype: 'checkcolumn',
header: 'Select',
align:'center',
dataIndex: 'mapped',
flex:1,
listeners :
{
checkchange : function(column, recordIndex, checked)
{
alert(checked);
//or send a request
}
}
},
Upvotes: 1
Views: 1184
Reputation: 3539
You may try using these four store methods:
maybe something like this:
var store = Ext.getStore('yourStore'),
modified = store.getUpdatedRecords(),
count = modified.lenght;
console.log(count + ' changes made');
Upvotes: 2