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

Issue with height of transition control

4 Answers 66 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Michael Evans
Top achievements
Rank 1
Michael Evans asked on 23 Jun 2010, 03:40 PM
I have a RadTransition control that is contained in the row of a Grid with a RowDefinition Height="Auto".  There are two different possible Contents for the control, one is a Telerik RadGridView and the other is another Grid that contains some other controls.  The height of the controls can vary, but whenever I transition from one Content to the other, the height of the Transition control doesn't shrink if the new content has a smaller height than the previous content.  Is there a solution for this?  I've tried using the Mesaure() method, and that actually does change the DesiredHeight of the control to the correct value, but it doesn't actually render the control at that height.  The result is that I have a row in my grid that contains my control(s) and then a lot of blank white space.  Any thoughts on what I can do to prevent this?

4 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 25 Jun 2010, 04:38 PM
Hi Michael Evans,

Thank you for contacting us.

We are not aware of this problem with RadTransition control. Sending us a sample running project illustrating the problem so that we can investigate it will be really helpful.

 I will be glad to assist you further.

All the best,
George
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
Michael Evans
Top achievements
Rank 1
answered on 25 Jun 2010, 06:46 PM
I've sent in a support ticket (322618) with a sample project.  I'm looking forward to your response. 
0
Keith
Top achievements
Rank 1
answered on 06 Jan 2012, 03:18 PM
Hi

Was there ever a resolution for this since I'm having the same problem?

I'm using the Transition control to host a wizard style interface and switching between the "pages" has the height problem. Is there a worksaround for this e.g. by capturing the sizechanged event. I've tried this and calculating the "real" height but then setting this for the transition control didn't make any difference.

Thanks
Keith
0
Yana
Telerik team
answered on 11 Jan 2012, 10:36 AM
Hello Keith,

Here is the workaround:

You can fix this by editing the ControlTemplate. You could edit easily the ControlTemplate of the TransitionControl in Expression Blend. Just drop a TransitionControl in the design surface, right-click it and choose from the menu Edit Template->Edit a Copy. Then Blend will generate for you all styles and templates needed. After that find a Rectangle with x:Name="OldContentPresenter" and wrap it in a Canvas. That should resolve your issue.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TransitionControl
Asked by
Michael Evans
Top achievements
Rank 1
Answers by
George
Telerik team
Michael Evans
Top achievements
Rank 1
Keith
Top achievements
Rank 1
Yana
Telerik team
Share this question
or