I am using List control to bind data with TreeList Control. List is list of objects and object's structure contains Id and parent iin iint form(also tried references in ID and parent ID) . When I assign datasource to treelist control at first time, then it shows correct hirarchy. but at runtime If again populate source list and assign as datasource to xtratreelist list control, then it doesnot add additional nodes in treelist control.
Initially I was using Datatable instead of List and it was working fine. willl you please guide me on this.
Thank you for contacting us.
Call the TreeList.RefreshDataSource method to update data displayed within the tree list.
Alternatively, use the BindingList instance as TreeList's data source, instead of the List instance.
In the attachment, you can find a simple sample that illustrates both these approaches.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.