progressive scroll in treeview

4 posts, 0 answers
  1. Balsuyambu
    Balsuyambu avatar
    37 posts
    Member since:
    Sep 2010

    Posted 30 Oct 2012 Link to this post

    Hi

    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?

    Thanks
    Balsuyambu
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 31 Oct 2012 Link to this post

    Hello Balsuyambu,

    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.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Balsuyambu
    Balsuyambu avatar
    37 posts
    Member since:
    Sep 2010

    Posted 01 Nov 2012 Link to this post

    Hi Tina,

    thanks for your clarifications.

    We used RadTreeViewItem to add nodes into the RadTreeView and not binding any object. Please find below the sample.

    RadTreeViewItem rtvi1 = new RadTreeViewItem();

     

    rtvi1.Header =

     

    "Node 1";

     

     

     

    RadTreeViewItem rtvi2 = new RadTreeViewItem();

     

    rtvi2.Header =

     

    "Node 2";

     

     

     

    RadTreeView1.Items.Add(rtvi1);

     

    RadTreeView1.Items.Add(rtvi2);

     

     

    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.

    thanks
    Balsuyambu S.

  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 05 Nov 2012 Link to this post

    Hi Balsuyambu,

    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.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top