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

TreeView Horizontal Expand Issue

3 Answers 30 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
kapil goyal
Top achievements
Rank 1
kapil goyal asked on 05 May 2010, 05:15 PM

HI,

In Treeview control, i have implemented ItemTemplateSelector and used one of sample template. The issue is releated with horizontal size changed. We don't want to enalbe Horizontal scrollviewer bcz wanted to view Treeviewitem content in wrap format.

I noticed when we do size changes in horizontal direction, it leaves the node text with more spaces. Not looks good.

Please see my attachment. Let me know if you need mroe details.

 

 

 

<telerik:HierarchicalDataTemplate  x:Key="AbstractExtensionNodeTemplate" ItemsSource="{Binding Path=BindableChildren}">

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto"></ColumnDefinition>

 

 

 

<ColumnDefinition Width="*"></ColumnDefinition>

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Source="../Images/abstract.PNG" Grid.Column="0" Margin="0 0 3 0"/>

 

 

 

<Image Source="../Images/extension.PNG" Grid.Column="0"/>

 

 

 

</StackPanel>

 

 

 

<TextBlock Text="{Binding FriendlyName}" TextWrapping="Wrap" Grid.Column="1"/>

 

 

 

</Grid>

 

 

 

</telerik:HierarchicalDataTemplate>

 

Thanks,
Kapil

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 06 May 2010, 07:40 AM
Hi kapil goyal,

We are aware of a similar issue whe the Treeview is used with virtualization turned on - e.g. with IsVirtualizing property set to True.

Is this your case too?

Best wishes,
Valentin.Stoychev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
kapil goyal
Top achievements
Rank 1
answered on 06 May 2010, 04:01 PM
Thanks of reply.

But i am not using Virtualization property. Please see my xaml for treeview.

 

 

<telerikNavigation:RadTreeView x:Name="tvReports"

 

 

Grid.Row="0"

 

 

IsRootLinesEnabled="True"

 

 

IsLineEnabled="True"

 

 

IsVirtualizing="False"

 

 

SelectionChanged="tvReports_SelectionChanged"

 

 

SelectionMode="Single"

 

 

LostFocus="tvReports_LostFocus"

 

 

IsLoadOnDemandEnabled="True"

 

 

ItemTemplateSelector="{StaticResource ReportNodeTemplateSelector}"

 

 

ScrollViewer.HorizontalScrollBarVisibility="Disabled"

 

 

VerticalAlignment="Stretch"

 

 

LoadOnDemand="tree_LoadOnDemand">

 

0
Vladislav
Telerik team
answered on 11 May 2010, 11:36 AM
Hello kapil goyal,

Thank you for this report.
We are aware of this issue.
The issue is logged in our PITS application, under the name "TreeView: A Horizontal scrollbar remains, when it is no longer needed". You can track its progress and vote for the issue there.

Kind regards,
Vladislav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
kapil goyal
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
kapil goyal
Top achievements
Rank 1
Vladislav
Telerik team
Share this question
or