Hi,
The grid looks like,
Code:
Ext.applyIf(me, {
items: [
{
xtype: 'gridpanel',
height: 223,
width: 133,
store: 'Store',
columns: [
{
xtype: 'gridcolumn',
width: 105,
dataIndex: 'Field',
text: 'Fields'
}
],
viewConfig: {
autoRender: true
},
selModel: Ext.create('Ext.selection.CheckboxModel', {
listeners: {
select: {
fn: me.onCheckboxselectionmodelSelect,
scope: me
}
}
})
}
]
});
me.callParent(arguments);
},
onCheckboxselectionmodelSelect: function(rowmodel, record, index, options) {
checkedField = record.get('Field');
}
So the checked values in this grid will be needed for another operation, for example, if the grid has,
with checkboxes for it on left and if I am checking test1 and test2, I should have it like
Code:
variable = {test1, test2}
or something like this comma separated.
For JSON, if I am getting response like,
Code:
{"value":[{"Field":"test1","table":"tablename"},{"Field":"test2","table":"tablename"},{"Field":"test3","table":"tablename"}]
I want to save table to a variable, how that can be done?
Thanks in advance!