jQuery UI Widgets › Forums › Angular › Angular – JQXTree expand/collapse
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 2 years, 2 months ago.
I need to add doubleclick event for jqxtree.
It works fine for the child objects.
If I double click on parent objects, it expands or collapses.
I want to ignore expand and perform double click.
It doesn’t trigger double click event.
You could bind to the onExpand event and when the parent item is expanded then return it with the collapseItem method to the previous state.
I hope this will help.
when I click on arrow, it will expand. That behavior should not change.
Only on doubleclick I need to ignore expand.
You could use a boolean flag that is set to true value in the doubleclick event.
After that, in the mentioned onExpand event to check for this and collapse this item.
You must be logged in to reply to this topic.