Hi Peter,
I was referring to this:
self.$grid.on(‘cellendedit’, function (event) {
if (event.args.datafield === ‘assign’) {
if (event.args.value === true) {
//DO A with event.args.rowindex
} else if (event.args.value === false) {
//DO B with event.args.rowindex
}
}
});
So, the parameter called ‘event’ passed to the callback function has a property called ‘args’, which in turn has a property called ‘rowindex’. This ‘rowindex’ property should indicate the row number where the cell has been edited, right?
So this is not about calling any Grid method. This is attaching an event handler to an event which is triggered when the editing of a cell is finished (internally in jqxGrid). The parameter passed to the callback function also is up to jqxGrid’s internals. If the rowindex does have the correct value when filtering is not active and it does not otherwise, I think it’s a bug. Or at least the documentation should mention why is this the case. Anyway, either if it’s a bug or just simply how things work, it does not seem to be correct.
This is taken from the demo section of your site:
cellendedit
This event is triggered when a cell’s edit operation has ended.
Code example
Bind to the cellendedit event by type: jqxGrid.
$(“#jqxGrid”).on(‘cellendedit’, function (event)
{
var column = args.datafield;
var row = args.rowindex;var value = args.value;
var oldvalue = args.oldvalue;
});
Kind regards