I am using the RadTreeListView. One node can have A LOT of children! I want to use the RadDataPager to get rid of performance problems! I tried to add it - but without success. I am using this:
<
telerik:RadTreeListView.ChildTableDefinitions
>
<
telerik:TreeListViewTableDefinition
ItemsSource
=
"{Binding Children}"
/>
</
telerik:RadTreeListView.ChildTableDefinitions
>
So I don't want the pager to be visible on the root nodes - only for child nodes.
How can I achieve this. Any help?
As this is important to me, I thank you for any help!!!
All the best,
Tim.
15 Answers, 1 is accepted
I am afraid that what your are trying to achieve is not possible.
RadDataPager is a stand-alone independent control and cannot be added to other controls in the sense that you describe. RadDataPager is a complete equivalent of the standard toolkit DataPager control provided by Microsoft. The only difference is that it is themed and styled as the other Telerik controls.
Here is what RadDataPager is capable of. Unfortunately, you cannot somehow insert it inside RadTreeListView. RadDataPager can only page the top-level collection of RadTreeListView.
Ross
the Telerik team
http://www.c-sharpcorner.com/uploadfile/mgold/how-to-do-paging-in-a-treeview-control-in-silverlight/
Thanks and all the best,Tim.
RadTreeListView is a different control from RadTreeView which is a HeaderedItemsControl and supports HierarchicalDataTemplates. On the other hand, RadTreeListView is in fact a RadGridView in disguise and cannot handle the same scenarios as RadTreeView does.
Unfortunately, I do not think that placing pagers inside RTLV would be possible. Maybe you should use RadTreeView instead of RadTreeListView.
Ross
the Telerik team
thanks for your quick reply! Unfortunately I need to display additional information for each item so the radtreelistview is needed. If one wants to use the radtreelistview and has sometimes more than 10.000 child entries your suggestion is? Is there some build-in help? Any suggestions beside not to use telerik controls or cut data? Thanks again and a lot, Tim.
The only option we can suggest you is to use RadTreeView or RadGridView instead RadTreeListView to achieve your goal.
Kind regards,Vlad
the Telerik team
You can limit your items if you simply assign desired chunk of your collection to the treelist ItemsSource. Later you can cancel the component default sorting and perform your own similar to this demo.
Greetings,Vlad
the Telerik team
thanks for your reply! I'll give it a try!
All the best,
Tim.
All the best and a big thanks,
Tim.
Indeed this is the default behavior of RadGridView and RadTreeListView. The scrollbar will be reset to top on every Reset CollectionChange including sorting, paging, filtering and grouping.
Greetings,Vlad
the Telerik team
I'm afraid that this cannot be changed.
Kind regards,Vlad
the Telerik team
Can you send us your application (via support ticket) to check it locally what's going on?
Kind regards,Vlad
the Telerik team