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.