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

Problem with the RadTreeView and Loading on demand

1 Answer 54 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
frederic szymczak
Top achievements
Rank 1
frederic szymczak asked on 16 Dec 2010, 02:43 PM
I am using the RadTreeView with the last version of Telerik dll, for Silverlight 4 but I have a strange comportement.
I am using LoadOnDemand. The Loading Panel never disappears.
Also, when I click the first time on an item, the children don't appear. They appear only when I click again.

Do you have an idea of this problem ?

<

 

Border x:Name="BorderBottomLeftPanel" Grid.Row="2" Style="{StaticResource BorderContentPanelStyle}">

 

 

 

<telerikNavigation:RadTreeView

 

 

Name="treeView"

 

 

Margin="2,10,2,10"

 

 

IsExpandOnDblClickEnabled="True"

 

 

IsExpandOnSingleClickEnabled="False"

 

 

ItemContainerStyle = "{StaticResource MyRadTreeViewItemStyle}"

 

 

Foreground="{StaticResource RadTreeViewForegroundBrush}"

 

 

ExpanderStyle="{StaticResource ExpanderStyle1}"

 

 

IsLoadOnDemandEnabled="True"

 

 

LoadOnDemand="RadTreeView_LoadOnDemand"

 

 

MouseLeftButtonUp="RadTreeView_MouseLeftButtonUp"

 

 

Selected="RadTreeView_Selected">

 

 

 

</telerikNavigation:RadTreeView>

Thank You,

 

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 21 Dec 2010, 04:30 PM
Hi frederic szymczak,

Could you please find the attached project and let us know if it satisfies you. The single-click expand could be achieved with setting the IsExpandOnSingleClickEnabled property to true. On the other hand, the loading animation ( if this is what you had in mind ) stops when you set      
clickedItem.IsLoadingOnDemand = false;
supposing the clickedItem is the RadTreeViewItem that you wish to load new children on demand ( that you`ve clicked). 
If this doesn`t fit in  your scenario, we would highly appreciate if you can send us a sample that demonstrates the issue you have come up with. You can also modify the attached project and send it back. Thank your for your cooperation in advance.


Best wishes,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
TreeView
Asked by
frederic szymczak
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or