I want to implement progressive scrolling funcionality in silverlight telerik treeview.
Initially set of items shall be added in the treeview (10 Items and child items of 10 items) and then item shall be added while scrolling the scroll viewer.
is it possible in treeview?
3 Answers, 1 is accepted
answered on 31 Oct 2012, 04:08 PM
The RadTreeView UI Virtualizaiton feature generates the item containers as they come into view thus creating a progressive scrolling. You can find more information about the feature in our documentation or take a look at this demo where you can see it in action.
Please let me know if this is what you have in mind.
We used RadTreeViewItem to add nodes into the RadTreeView and not binding any object. Please find below the sample.
RadTreeViewItem rtvi1 = newRadTreeViewItem();
RadTreeViewItem rtvi2 = newRadTreeViewItem();
In this case, if IsVirtualizing="True", can i get the expected behaviours that means what are the nodes i see in the view that only loaded and when i scroll, remaining nodes will be added.
answered on 05 Nov 2012, 09:08 AM
The UI Virtualizaiton feature is only available when the RadTreeView's content is generated through a databinding operation. This is due to the fact that the UI virtualization generates containers of type RadTreeViewItem for each data item from the ItemsSource collection based on the properties of that data item and the binding definitions. However, when you create the RadTreeViewItems on your own, the control can't dynamically create or remove them as you need to manually set the information you need to provide in each RadTreeViewItem.
And in cases where the RadTreeView is used to display large lists, we recommend using a databinding approach and taking advantage of the virtualizaiton feature.