Found a (dirty) solution for it.
Toplevel rows have records so I just raise an arbitrary exception in the rowClick event, which apparently prevents the row from being selected.
$(‘#treeGrid’).on(‘rowClick’,
function (event)
{
if(event.args.row.records.length > 0)
throw ‘preventing selection’;
}
);
It would be a lot nicer to be able touse event.stopPropagation, event.preventDefault or return false, but that doesn’t work with the jqwidgets