jQuery UI Widgets Forums TreeGrid How to refresh checkbox rendering to match source

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 8 years, 4 months ago.

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

  • AshtonDyer

    Is there an easy way to get all checkboxes to re-render to match the source?

    I’m using angular and when I tick a parent row’s checkbox with hierarchicalCheckboxes enabled it takes too long (there are a lot of child rows and each is checked using jqx’s event driven nature). Because of this I figured I would disable hierarchicalCheckboxes and implement my own version that dodges the event driven slowdown. Basically, when the checkRow event is fired I get the row checked from the event.args.row and modify all the parent and child rows from there. This works fine and the data updates properly but I can’t seem to find a way to make the tree refresh it’s checkbox states on the render side. I’ve tried all sorts of settings.refresh options (‘checkboxes’, ‘source’) as well as settings.apply(‘refresh’).

    Any advice would be greatly appreciated.


    Hello AshtonDyer,

    You can call the method updateBoundData to perform a data bind and update the jqxTreeGrid with the new data.
    If you appear new question feel free to ask again.
    With some example in https://www.jseditor.io/ or http://jsfiddle.net/ for better analyze.

    Best Regards,
    Hristo Hristov

    jQWidgets team

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

You must be logged in to reply to this topic.