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

I need two more events...

4 Answers 73 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
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.

4 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 06 Oct 2011, 08:40 AM
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!
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.
0
Alex Gyoshev
Telerik team
answered on 11 Oct 2011, 10:04 AM
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!
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 11 Oct 2011, 03:03 PM
Awesome Alex, thanks so much for listening :)
Tags
Splitter
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Alex Gyoshev
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or