Radtreeview onload demand event error

3 posts, 0 answers
  1. Kumar
    Kumar avatar
    5 posts
    Member since:
    Sep 2012

    Posted 01 Oct 2012 Link to this post

    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. Kumar
    Kumar avatar
    5 posts
    Member since:
    Sep 2012

    Posted 01 Oct 2012 Link to this post

      <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?
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 03 Oct 2012 Link to this post

    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.

Back to Top