TreeView Horizontal Expand Issue

4 posts, 0 answers
  1. kapil goyal
    kapil goyal avatar
    3 posts
    Member since:
    Apr 2010

    Posted 05 May 2010 Link to this post

    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

     

     

     

     

  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 06 May 2010 Link to this post

    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.
  3. kapil goyal
    kapil goyal avatar
    3 posts
    Member since:
    Apr 2010

    Posted 06 May 2010 Link to this post

    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">

     

  4. Vladislav
    Admin
    Vladislav avatar
    277 posts

    Posted 11 May 2010 Link to this post

    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.
Back to Top