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

Radtreeview onload demand event error

2 Answers 49 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 01 Oct 2012, 03:52 PM
Hi am able to build the Radtreeview with child items, I used the load on demand event to load the child items and it works for fine.
The problem here is for every child item there is expand sign but there is a point there are no child items for a parent in that case for the child items I don't want show the expand sign. How can I achieve this ?

2 Answers, 1 is accepted

Sort by
0
Kumar
Top achievements
Rank 1
answered on 02 Oct 2012, 04:24 AM
  <telerik:RadTreeView  x:Name="radTreeView" 
                                 IsExpandOnSingleClickEnabled="True" 
                                 LoadOnDemand="RadTreeView_LoadOnDemand"
                                IsLoadOnDemandEnabled="True"
                                ItemsSource="{Binding TreeViewSource,Mode=OneWay}" 
                             ItemTemplate="{StaticResource ParentTemplate}"
                             >
                <telerik:RadTreeView.ItemContainerStyle>
                    <Style TargetType="telerik:RadTreeViewItem">
                        <Setter Property="IsLoadOnDemandEnabled" Value="{Binding IsLoadOnDemandEnabled, Mode=TwoWay}" />
                    </Style>
                </telerik:RadTreeView.ItemContainerStyle>
            </telerik:RadTreeView>

tried with this way but it didn't worked, I cant see the expand animation for the first time also am I missing something?
0
Pavel R. Pavlov
Telerik team
answered on 03 Oct 2012, 02:28 PM
Hi Kumar,

Please let us know if the answer I posted in the following thread helped you in overcoming your issues or if you have any other questions.

Regards,
TeamX2_Pavel
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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