Node Expand Event

2 replies. Last post: May 17, 2016 3:03 PM by Shailendra Senger
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I am binding treeview at runtime by processing a List<T> appropriatly as a datasource where T is a class. Since Treeview doesn't have any inbuilt function which can make the searched node visibile to user. If treeview has large number of nodes than searching a bottom node always resides in bottom and scroll bar doesn't set appropriatly to bring that node up. However I got a work around to call ScrollIntoView() function, for searched node, on node expand event. This solution fails in a situation where searched node's grand parent is collapsed but its childrens are expanded.  So when a grandparent expanded, its OnNodeExpand event fires for it only, not for its children as they already expanded. 

Please let me know how can I trigger OnNodeExpand event for all children nodes as well (no matter if they already expanded). 

All times are GMT -5. The time now is 8:06 PM.
Previous Next