jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Disable row selection Disable row selection #50299

    wimwest
    Participant

    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

Viewing 1 post (of 1 total)