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

Sizechanged event

2 Answers 81 Views
Window
This is a migrated thread and some comments may be shown as answers.
Trude
Top achievements
Rank 2
Trude asked on 06 Jan 2010, 10:52 PM
I want to update the properties (width, height) of the usercontrol inside my radwindow whenever the radwindow changes it's size. I tried using the sizechanged event, but that event fires continuously making the update very demanding on the server. How do I solve this? There should be two events; a sizechange event (that fires continuously when the left mouse button is down) and a sizechanged event that fires once the user releases the left mousebutton. Also, the left mousebutton events do not fire when resizing (alternative solution). Any other solutions/workarounds?

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 07 Jan 2010, 07:15 AM
Hi Jorn,

You can use LayoutChangeEnded event for that purpose. Also there is LayoutChangeStarted event is you need to know when resizing started.

Let us know if you need more information.

All the best,
Hristo
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
Trude
Top achievements
Rank 2
answered on 07 Jan 2010, 07:33 AM
I have a user control inside my radwindow and I can't see those layout events from it - only the sizechanged event.
From the calling page where the radwindow is defined I can see all events. Why are only some events visible from the user control? How do I work around this?

Edit: My bad, I was of course confused by the user controls sizechanged event. I've marked your reply as answered!
Tags
Window
Asked by
Trude
Top achievements
Rank 2
Answers by
Hristo
Telerik team
Trude
Top achievements
Rank 2
Share this question
or