jQWidgets Forums

jQuery UI Widgets Forums Grid Strange behaviour in 'Checkbox' selection mode

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

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

  • Skyrim
    Participant

    Greetings JQWidgets Team,

    I have some questions about the ‘checkbox’ selection mode in the jqxGrid.

    -Can the chebox for selecting/unselecting all the records in the grid be disabled or at least set to hidden??

    -Why is the unselect-all action bound to the ‘rowselect’ event?? I suposse it should be bound to the ‘rowunselect’ event.

    You can see this behaviour in code like this:

    $(“#jqxgrid”).on(‘rowselect’, function(event){
    var sel=$(‘#jqxgrid’).jqxGrid(‘getselectedrowindexes’);
    alert(sel.length);
    });

    The alert triggers when checking any row in the grid and when checking the select-all checkbox, but also when unchecking the select-all checkbox. Is this normal or maybe a bug???

    I’m using JQuery 1.9.x and jQwidgets 3.5

    Thanks in advance.


    Peter Stoev
    Keymaster

    Hi Skyrim,

    1. No. It cannot be hidden.
    2. No, this is not a normal behavior. I added a work item.

    Best Regards,
    Peter Stoev

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


    Skyrim
    Participant

    Hi Mr. Stoev,

    Well, I’m not sure what you mean with a “work item”, but I guess the JQWidgets Team is going to fix this “problem” and others.

    Can I still make a “little” sugestion?? The select-all checkbox should have the option to be hidden/disabled. This can be helpful when having very large datasources, so forcing the end user to search and select only specific rows, or when there is a defined limit for the selected rows (ex. no more than 20 items to select )

    From time to time, I’ll be tracking how this issue is going.

    Thanks for the help.

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

You must be logged in to reply to this topic.