This is a migrated thread and some comments may be shown as answers.

LoadOnDemand issue

1 Answer 61 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ashley
Top achievements
Rank 1
Ashley asked on 05 Nov 2012, 02:18 PM
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);

}


1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 06 Nov 2012, 02:13 PM
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.

Tags
TreeView
Asked by
Ashley
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or