SizeChanged not fired and ActualHeight and ActualWidth incorrect

3 posts, 0 answers
  1. Pieter
    Pieter avatar
    34 posts
    Member since:
    Jan 2011

    Posted 28 Sep 2011 Link to this post

    I'm trying to layout my custom RadPane header using events. In the event handler I need the ActualWidth and ActualHeight of the RadPane. However both values are set to 27,96 and 46,65 while the RadPane is much bigger.

    I tried using radPane.Measure() to get more actal values, but this does not change the ActuallWidth and ActualHeight.

    I Also added a resize event handler to the RadPane, but my eventhandler isn't called when the RadPane resizes, the SizeChanged isn't called when or after the RadPane is resizing. So this makes it very hard to get the actual width en height of a given radPane.

    Does anybody have a solution for this?
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 30 Sep 2011 Link to this post

    Hello Pieter,

    The Header actually is the pane itself. The bigger part is the RadPaneGroup.
    Could you please elaborate more on your scenario and what exactly you are trying to achieve? In that way we will be able to provide you with solution to fit your case.

    Kind regards,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft R3 2016 release webinar banner
  4. Pieter
    Pieter avatar
    34 posts
    Member since:
    Jan 2011

    Posted 09 Oct 2011 Link to this post

    When the RadPane is outside the application resizing works normally. So I can define a grid wher the first row is 10% of the window with a given minimal and maximum height to get a nise resizing header.

    When the RadPane is positioned in the application Window this Grid resizing does not work because the resizing event doesn't come through. However my control in the content area does get resizing events and an ActualWidth and ActualHeight that do match the actual size. Because I know the content should take 90% of the whole window I can calculate the size of the header and then set the header size from my client components. Not the cleaniest of solutions but it works.
Back to Top