jQuery UI Widgets Forums TreeGrid Disable row selection

This topic contains 2 replies, has 2 voices, and was last updated by  wimwest 10 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Disable row selection #50233


    Is it possible to disable row selection for toplevel rows in TreeGrid? I want only the child rows selectable for a user.

    Disable row selection #50235

    Peter Stoev

    Hi wimwest,

    It is not possible to disable the selection of specific rows in the TreeGrid.

    Best Regards,
    Peter Stoev

    jQWidgets Team

    Disable row selection #50299


    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.
    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 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.