I have the following part of code that displays row of checkboxes in grid in this way grid
columns of grid:
columns: [{
text: 'Name',
dataIndex: 'name'
},{
text: 'Permissions',
dataIndex: 'permissions',
width: 200,
renderer: function (value, metaData, record, rowIndex, colIndex, store, view) {
var checkboxes = '';
for (var variable in value) {
var temp = value[variable] === 1 ? 'checked' : '';
checkboxes += '<input type="checkbox" ' + 'name="' + variable + '" value="' +
value[variable] + '"' + temp + '>' + variable;
}
return checkboxes;
}
}]
I would like to save each checkbox value, so when I change the checked value of checkbox it saves even after page reload. I am trying to use listeners, or maybe the simplest way exists. Or maybe some stateful or stateevents.