jQWidgets Forums

jQuery UI Widgets Forums Grid No row selection on click

This topic contains 1 reply, has 1 voice, and was last updated by  sved 12 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • No row selection on click #11108

    sved
    Participant

    Hello,
    is there any option to remove the rowselection, when user clicks on row? I’ve tried to catch the event and unselect the row using this code, but it doesn’t work:
    $(‘#jqxgrid’).bind(‘rowclick’, function (event) {
    var args = event.args;
    var row = args.rowindex;
    $(‘#jqxgrid’).jqxGrid(‘unselectrow’, row);
    return false;
    });
    I want the row to be selected, only when I click on particular column in the grid.
    Any ideas?
    Thanks

    No row selection on click #11111

    sved
    Participant

    The problem was fixed, with such code:
    if(column.datafield != “id”)
    {
    $(‘#jqxgrid’).selectionmode(‘none’);
    }

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

You must be logged in to reply to this topic.