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

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

3 Answers 60 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 25 Jan 2010, 10:06 PM
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}" /> 
                </StackPanel> 
                <TextBlock Margin="20,0,0,0" Style="{StaticResource ValidationTextStyle}" TextWrapping="Wrap" MaxWidth="400"  
                           Visibility="{Binding IsValidationMessageVisible, Converter={StaticResource BoolToVisibilityConverter}}" 
                           Text="{Binding Path=ValidationMessage}"/> 
            </StackPanel> 
        </DataTemplate> 

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

Thanks,
Tim

3 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 27 Jan 2010, 04:05 PM
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.
0
Alex Sorokoletov
Top achievements
Rank 1
answered on 03 Feb 2010, 02:05 PM
Hi!
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,
Alex.
0
Tihomir Petkov
Telerik team
answered on 04 Feb 2010, 02:03 PM
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.

Regards,
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.
Tags
TreeView
Asked by
Tim
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Alex Sorokoletov
Top achievements
Rank 1
Tihomir Petkov
Telerik team
Share this question
or