Hi,
In the jqxdataTable I test if the user clicks on the left button or on the wheel to go to the linked URL in the same window or in a new one.
function openlink (event, lnk) {
var button = event.args.originalEvent.which;
if (button == 2) {
window.open(lnk, '_blank');
} else {
self.location = lnk;
}
}
$("#jqxdatatable").on('rowClick', function (event) {
var clickid = event.args.row.id;
openlink (event, "newpage.php?id="+clickid) ;
});
I try to use the same tip on a jqxGrid
$("#jqxgrid").on('rowclick', function (event) {
var row = event.args.rowindex;
var editid = dataAdapter.records[row]["id"];
openlink (event, "newpage.php?id="+editid) ;
});
It works with the left button on the jqxGrid. But if I click on the wheel, the rowclick event is not activated.
In a future release, can you add the behavior of the jqxDataTable to jqxGrid for the click event ?
Thanks