sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve
asked on 05 Oct 2011, 06:18 PM
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.
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.
4 Answers, 1 is accepted
0
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
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!
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 06 Oct 2011, 03:23 PM
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.
...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.
0
Hi Steve,
The attached build has the new layoutChange event. Let us know how it goes!
Best wishes,
Alex Gyoshev
the Telerik team
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!
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 11 Oct 2011, 03:03 PM
Awesome Alex, thanks so much for listening :)