nodes text not displayed properly

6 posts, 0 answers
  1. Alex
    Alex avatar
    36 posts
    Member since:
    Sep 2010

    Posted 25 Jan 2011 Link to this post

    Please find a picture attached. It looks like some of the nodes are overlaying each other when expanded. It happens not often, but it does happen. Have you seen anything like that before and is there a solution?

    Thanks

    Alex
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 25 Jan 2011 Link to this post

    Hi Alex,

    I haven't seen similar visual appearance of the RadTreeView. Have you made a changes to its style, or the style of the RadTreeViewItem ? Since the issue seems to be very uncommon, we would highly appreciate if you send us a runnable sample so that we could investigate in depth. Thank you in advance. 

    Greetings,
    Petar Mladenov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Alex
    Alex avatar
    36 posts
    Member since:
    Sep 2010

    Posted 27 Jan 2011 Link to this post

    It happens random and not very often. There are no chnages to tree style. Not really sure what other useful information I can tell you ... Please find the code below:

    <localcontrols:RadTreeViewExtended IsLineEnabled="True" IsEditable="False"
                        x:Name="TreeListView" ItemTemplate="{StaticResource test}"
                        Background="Transparent"
                        ScrollViewer.HorizontalScrollBarVisibility="Auto"
                        ScrollViewer.VerticalScrollBarVisibility="Auto"
                        IsExpandOnSingleClickEnabled="False"
                        IsExpandOnDblClickEnabled="True"
                        SelectionChanged="TreeListView_SelectionChanged"
                        Expanded="TreeListView_Expanded"
                        IsLoadOnDemandEnabled="True"
                        SelectionMode="Single" 
                        LoadOnDemand="TreeListView_LoadOnDemand"
                        VerticalAlignment="Stretch">
      
                            <telerik:RadContextMenu.ContextMenu>
                                <telerik:RadContextMenu
                                x:Name="TreeContextMenu"
                                Opened="TreeContextMenu_Opened"
                                ItemClick="TreeContextMenu_ItemClick">
                                    <telerik:RadContextMenu.Items>
      
                                    </telerik:RadContextMenu.Items>
                                </telerik:RadContextMenu>
                            </telerik:RadContextMenu.ContextMenu>
      
                        </localcontrols:RadTreeViewExtended>

    <telerik:ContainerBindingCollection x:Name="BindingsCollection">
         <telerik:ContainerBinding PropertyName="IsExpanded" Binding="{Binding IsExpanded, Mode=TwoWay}"/>
         <telerik:ContainerBinding PropertyName="IsSelected" Binding="{Binding IsSelected, Mode=TwoWay}"/>
     </telerik:ContainerBindingCollection>
    <telerik:HierarchicalDataTemplate x:Key="test" ItemsSource="{Binding Children}" 
                     telerik:ContainerBinding.ContainerBindings="{StaticResource BindingsCollection}">
         <TextBlock Text="{Binding DisplayName}"/>
     </telerik:HierarchicalDataTemplate>


    public class RadTreeViewExtended: RadTreeView
        {
            protected override DependencyObject GetContainerForItemOverride()
            {
                RadTreeViewItemExtended tvi = new RadTreeViewItemExtended();
      
                Binding isLoadOnDemandEnabledBinding = new Binding("HasChildren");            
                isLoadOnDemandEnabledBinding.Mode = BindingMode.TwoWay;
                tvi.SetBinding(RadTreeViewItemExtended.IsLoadOnDemandEnabledProperty, isLoadOnDemandEnabledBinding);
      
                return tvi;
            }
        }
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 01 Feb 2011 Link to this post

    Hello Alex,

    We would highly appreciate if you send us a runnable sample showing the issue so that we could investigate in depth? We were unable to reproduce your issue due to  missing files or methods from your scenario. You can also elaborate more on your scenario and especially why you wish to override the RadTreeView's methods. This way we could provide you with a better advice.

    All the best,
    Petar Mladenov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  6. Neil Green
    Neil Green avatar
    1 posts
    Member since:
    Aug 2012

    Posted 12 Jun 2012 Link to this post

    Hi,

    Was there any resolution to this as I am currently experiencing the same issue?

    many thanks,
    Neil
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 14 Jun 2012 Link to this post

    Hi Neil,

     Is it possible for you to send us a project in a new support thread? This way we would be better able to investigate your issues. In fact, we weren't able to reproduce this issue previously.

    Regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner