jQuery UI Widgets Forums Grid Prevent rowunselect

This topic contains 2 replies, has 2 voices, and was last updated by  jotsys 9 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Prevent rowunselect #75823

    jotsys
    Participant

    Hello,

    How can I prevent un-selecting a row in rowunselect event?

    For example:
    UIDlgGridPtr.on(‘rowunselect’, function (event) {
    if (condition met) return false;
    });

    I did not see any events like beforerowunselect .

    Thanks,
    Jotsys

    Prevent rowunselect #75834

    Dimitar
    Participant

    Hello Jotsys,

    On rowunselect you can call the selectrow method and it would seem as if the row cannot be unselected:

    UIDlgGridPtr.on('rowunselect', function(event) {
        if (condition met) {
            UIDlgGridPtr.jqxGrid('selectrow', event.args.rowindex);
        }
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Prevent rowunselect #75943

    jotsys
    Participant

    That worked like a charm .
    Thanks Dimitar

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

You must be logged in to reply to this topic.