Sizechanged event

3 posts, 1 answers
  1. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 06 Jan 2010 Link to this post

    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. Answer
    Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 07 Jan 2010 Link to this post

    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.
  3. DevCraft banner
  4. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 07 Jan 2010 Link to this post

    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!
Back to Top