jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • The overall issue that I was experiencing was this:

    I have a grid that has an action dropdown list in the header that includes a Show/Hide Columns option, which when selected displays a modal with all of the grid columns, each with a checkbox beside it, where the user can select which columns to show/hide. In the grid I have two checkbox type columns with select-all checkboxes in their headers. When the user checks/unchecks a column to show/hide, the knockout binding that I am using to initialize the jqxCheckBox on these select-all checkboxes is broken and the select-all checkboxes lose their styling.

    So, I was thinking that I could reinitialize the jqxCheckBox on the select-all checkboxes in an event handler that may get triggered when the columns are shown/hidden, if I could identify that event.

    What I ended up doing, which should have been obvious to me sooner, was creating an event handler that is triggered on change of the jqxCheckBox, when the user checks/unchecks the column(s) to show/hide, and then reinitializing the jqxCheckBox on the select-all checkboxes.

    This works well.

    If anyone has a better suggestion, I’m interested to read it.

    Thanks for the confirmation

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