jQuery UI Widgets Forums Grid Checkbox + Selectrow

This topic contains 2 replies, has 2 voices, and was last updated by  Martin 5 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Checkbox + Selectrow #103677

    Shaun
    Participant

    Hi!

    I’m adding checkboxes to the grid and selecting the entire row like this:

    leftGrid.bind('cellendedit', function (event) {
          if (event.args.value) {
            $("#jqxgrid").jqxGrid('selectrow', event.args.rowindex);
            selectedItems++;
          }
          else {
            $("#jqxgrid").jqxGrid('unselectrow', event.args.rowindex);
            selectedItems--;
          }
          setBtnState();
        });

    However, when I call .jqxGrid(‘clearselection’), it clears the selected rows, but not the checkboxes.

    Is there another method to clear both the selection & the select box check?

    Thanks,
    Shaun

    Checkbox + Selectrow #103688

    Shaun
    Participant

    I solved this by using the editable state for each column.

    Checkbox + Selectrow #103735

    Martin
    Participant

    Hello Shaun,

    Thank you for the update!

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.