I need two more events...

5 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 05 Oct 2011 Link to this post

    I need to call a clientside re-paint on my radgrid once the splitters have finished expanding or collapsing, not before

    Can you change it to

    expanding
    collapsing

    expanded
    collapsed

    Please?

    ...or have another workaround?...seems like the resize method also has this issue...happens once I start resizing, not after it's stopped.
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 06 Oct 2011 Link to this post

    Hi Steve,

    Having expanding/expanded events has been confusing in the past -- we prefer introducing events that are cancellable (expanding) and different events that get called afterwards (like the "activated" event that is fired when the window widget is opened). In your case, you should be able to check the pane state when the splitter is redrawn by attaching an event handler to the resize event.

    Another workaround that usually works is to place the code in a setTimeout function that delays the execution -- but it isn't as pretty as using the proper event.

    Regards,
    Alex Gyoshev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 06 Oct 2011 Link to this post

    I have handled resize, but that seems to trigger "Before" as well...like once I stop resizing and let go of the mouse, the event doesn't happen.

    ...and a timeout is really ghetto :/

    What about a compromise...a "changed" event where when the state is final (resize stopped, expanded, collapsed), it gets triggered.
  5. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 11 Oct 2011 Link to this post

    Hi Steve,

    The attached build has the new layoutChange event. Let us know how it goes!

    Best wishes,
    Alex Gyoshev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 11 Oct 2011 Link to this post

    Awesome Alex, thanks so much for listening :)
Back to Top
Kendo UI is VS 2017 Ready