Hi,
I have a Jqxgrid of ‘singlerow’ selection mode and ‘rowclick’ event method.
And I need to get clicked column name like datafield of ‘cellselect’.
I found ‘_clickedcolumn’ in rowclick event argument.
What’s the exact meaning of that?
And What’s the diffrence between ‘event.owner._clickedcolumn’ and ‘event.args.owner._clickedcolumn’?
There is my ‘rowclick’ event method below.
$(ID_DATA_GRID).on(‘rowclick’, function(event) {
console.log(event);
var col = event.owner._clickedcolumn;
console.log(col);
});
When I try to test that, there is what I need in ‘event.owner._clickedcolumn’ (using ‘Console’ window of google chrome).
But variable ‘col’ have previous value of clicked column name.
For example, when I click ‘a’ column, then variable ‘col’ is ‘undefined’.(but ‘event.owner._clickedcolumn’ is ‘a’ in chrome console window)
and then I click ‘b’ column, then ‘col’ is ‘a’.(but ‘event.owner._clickedcolumn’ is ‘b’ in chrome console window)
What’s the solution of that ? And can I get the clicked column name using ‘rowclick’ event?