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

SizeChanged not fired and ActualHeight and ActualWidth incorrect

2 Answers 540 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Pieter
Top achievements
Rank 2
Pieter asked on 28 Sep 2011, 02:38 PM
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 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 30 Sep 2011, 11:39 AM
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,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Pieter
Top achievements
Rank 2
answered on 09 Oct 2011, 08:52 AM
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.
Tags
Docking
Asked by
Pieter
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
Pieter
Top achievements
Rank 2
Share this question
or