Collapsing a RadTreeViewItem container when part is set to Visibility.Collapsed

4 posts, 0 answers
  1. Tim
    Tim avatar
    169 posts
    Member since:
    Apr 2008

    Posted 25 Jan 2010 Link to this post

    A picture is worth 1000 words.  In the attached, I have a template with a text block which is set to Visible on error and Collapsed when the error goes away.  On the initial Collapsed -> Visible, the RadTreeViewItem container expands to make room, but on Visible -> Collapsed, the remaining component re-centers itself without the additional space disappearing.  You can see that Tier2.2_F has never had an error, but that Tier1.1_F has, and so has Tier1.1_LF.  Tier1.2_F currently has the error text expanded.

    The template is:

            <DataTemplate x:Key="XXXTemplate"
                <StackPanel Orientation="Vertical"
                    <StackPanel Orientation="Horizontal"
                        <Image Margin="2,0,2,0"  Source="xxx.png"/> 
                        <TextBlock Text="{Binding XXX}" /> 
                    <TextBlock Margin="20,0,0,0" Style="{StaticResource ValidationTextStyle}" TextWrapping="Wrap" MaxWidth="400"  
                               Visibility="{Binding IsValidationMessageVisible, Converter={StaticResource BoolToVisibilityConverter}}" 
                               Text="{Binding Path=ValidationMessage}"/> 

    I would like it if the tree collapsed the extra space.  Is this intentional?  Side-effect of StackPanel?


  2. Kiril Stanoev
    Kiril Stanoev avatar
    1512 posts

    Posted 27 Jan 2010 Link to this post

    Hi Tim,

    Indeed RadTreeView has some issues regarding this scenario. Thank you for your report and we will do our best to fix it as soon as possible. However, I cannot bind to a specific date for the fix. I have also added 1000 Telerik points to your account. Let me know if you have additional questions regarding this topic.

    Sincerely yours,
    Kiril Stanoev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Alex Sorokoletov
    Alex Sorokoletov avatar
    15 posts
    Member since:
    Dec 2009

    Posted 03 Feb 2010 Link to this post

    I faced yesterday with the same issue as listed here and have certain questions to telerik team:
    1. Is there any news on this issue?
    2. I have the same and need to resolve it.
    3. Is there any workaround?

    Sincerely yours,
  4. Tihomir Petkov
    Tihomir Petkov avatar
    576 posts

    Posted 04 Feb 2010 Link to this post

    Hello Alex,

    The bug is not yet scheduled to be fixed in a specific release. Unfortunately, we are not aware of workarounds at the moment.

    Tihomir Petkov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top