On Parent Close Attach Event

edited September 2019 in Technical questions

I have a treeview table. I wanted to hide pagination if all Parent nodes are close and also they are less than or equal to 10. Please suggest me any idea how do I create a logic for that.

Tagged:

Comments

  • Hello @niha, you can try dynamically check the current open items count via the getOpenItems() method to see if all of the parent nodex are closed. If that checks out you hide the pager component, if not - you show it.

    and also they are less than or equal to 10

    I'm not quite sure what you mean by this, do you mean the total parent node count is less than or equal 10?

    Either way, here is just a small example of how this might look - https://snippet.webix.com/6a84qr8g.

  • thanks @Dzmitry.. problem solved.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!