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

nodes text not displayed properly

5 Answers 73 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 25 Jan 2011, 11:58 AM
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

5 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 25 Jan 2011, 03:43 PM
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>>
0
Alex
Top achievements
Rank 1
answered on 27 Jan 2011, 12:27 PM
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;
        }
    }
0
Petar Mladenov
Telerik team
answered on 01 Feb 2011, 05:23 PM
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>>
0
Neil Green
Top achievements
Rank 2
answered on 12 Jun 2012, 10:03 AM
Hi,

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

many thanks,
Neil
0
Petar Mladenov
Telerik team
answered on 14 Jun 2012, 08:44 AM
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 >>

Tags
TreeView
Asked by
Alex
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Alex
Top achievements
Rank 1
Neil Green
Top achievements
Rank 2
Share this question
or