jQWidgets Forums

jQuery UI Widgets Forums Grid Events triggered during or on complete of showcolumn/hidecolumn execution

This topic contains 1 reply, has 1 voice, and was last updated by  Male Software Developer 6 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • I am trying to find out if there are any events that I can create a handler for that are triggered during or on complete of the showcolumn/hidecolumn methods.

    I am using knockout and when I execute showcolumn/hidecolumn some of my knockout bindings are breaking. I would like to create an event handler that gets triggered during or on completion of execution of showcolumn/hidecolumn, where I can re-apply my knockout bindings.

    Any help is greatly appreciated.

    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.

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

You must be logged in to reply to this topic.