LoadOnDemand issue

2 posts, 0 answers
  1. Ashley
    Ashley avatar
    1 posts
    Member since:
    Nov 2012

    Posted 05 Nov 2012 Link to this post

    I have just downloaded the trial to asses the suitability of the control for an upcoming project.

    I am trying to get the load on demand working.
    When I try to follow the example the event is fired but on the screen a spinny arrow icon just goes round and round.

    Could you please advise.

    xaml:

    <telerik:RadTreeView Height="250" HorizontalAlignment="Left" Margin="18,24,0,0" Name="radTreeView1" VerticalAlignment="Top" Width="150" IsLoadOnDemandEnabled="True" LoadOnDemand="OnLoadOnDemand"/>

    cs:
    private void OnLoadOnDemand(object sender, Telerik.Windows.RadRoutedEventArgs e)

    {

     

    RadTreeViewItem item = e.OriginalSource as RadTreeViewItem;

     

    // Adding child items

     

    RadTreeViewItem product = new RadTreeViewItem();

    product.Header =

     

    "Product1.1";

    item.Items.Add(product);

    product =

     

    new RadTreeViewItem();

    product.Header =

     

    "Product1.1";

    item.Items.Add(product);

    }


  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 06 Nov 2012 Link to this post

    Hello Ashley,

    You can stop the loading indication by setting the RadTreeViewItem.IsLoadingOnDemand property to False as described at the bottom of this article.

    Regards,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top