Issue with height of transition control

5 posts, 0 answers
  1. Michael Evans
    Michael Evans avatar
    31 posts
    Member since:
    Mar 2010

    Posted 23 Jun 2010 Link to this post

    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?

  2. George
    Admin
    George avatar
    1332 posts

    Posted 25 Jun 2010 Link to this post

    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
  3. DevCraft banner
  4. Michael Evans
    Michael Evans avatar
    31 posts
    Member since:
    Mar 2010

    Posted 25 Jun 2010 Link to this post

    I've sent in a support ticket (322618) with a sample project.  I'm looking forward to your response. 
  5. Keith
    Keith avatar
    88 posts
    Member since:
    May 2007

    Posted 06 Jan 2012 Link to this post

    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
  6. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Jan 2012 Link to this post

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

Back to Top
DevCraft banner