I am testing the rowindex and getrowdata properties for jqxwidget as follows:
$("#DocumentPanel").on('rowclick',function(event){
var row = event.args.rowindex;
// event.args.rowindex is a bound index.
//alert("Row with bound index: " + row +" has been clicked.");
var datarow = $("#DocumentPanel").jqxGrid('getrowdata', row);
alert("Data Row Contents:"+ datarow.toSource());
});
When I run the first alert, it runs fine and I see a index in the dialog shown. However, when with the second alert, nothing happens after clicking the row. Is there something wrong I am doing while using the getrowdata property?