jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree How to efficiently remove subitems?

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • How to efficiently remove subitems? #57680

    sqward
    Participant

    Hi,

    I need to remove sub-items from a tree item and I was wondering how to do that efficiently? Currently I have a loop which goes over all sub-items and calls removeItem. This is painfully slow mainly because _render is called for every item. This also happens when the parent item is collapsed so subitems are not even visible. I must be missing something obvious? Why there’s no beginUpdate/endUpdate pair list there is for treeGrid?

    Please help 🙂

    How to efficiently remove subitems? #57684

    Dimitar
    Participant

    Hello sqward,

    Unfortunately, a loop is the only way to remove multiple tree items. The methods beginUpdate and endUpdate are not part of jqxTree’s API.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.