jQuery UI Widgets Forums TreeGrid Seeking input on: TreeGrid. Thanks!

This topic contains 1 reply, has 2 voices, and was last updated by  admin 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Seeking input on: TreeGrid. Thanks! #136197

    krishna_jp
    Participant

    How do I listen for and handle row selection events in jqxTreeGrid with jQuery?

    Seeking input on: TreeGrid. Thanks! #136205

    admin
    Keymaster

    Hi,

    In jqxTreeGrid, row selection events are exposed via the rowSelect and rowUnselect events.
    You can easily listen for them using jQuery’s .on() method.

    Here’s a simple example:

    $("#treeGrid").on('rowSelect', function (event) {
        // event.args contains details about the selected row
        var args = event.args;
        var rowKey = args.key; // the id/key of the selected row
        var rowData = args.row; // the row’s full data object
    
        console.log("Row selected:", rowKey, rowData);
    });
    
    $("#treeGrid").on('rowUnselect', function (event) {
        var args = event.args;
        var rowKey = args.key;
    
        console.log("Row unselected:", rowKey);
    });

    Best regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.