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

Resize event stuff to happen only if it was interacted by the user...

2 Answers 23 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Dorian
Top achievements
Rank 2
Dorian asked on 13 Feb 2014, 10:02 AM
As far as I have seen the resize event of the splitter happens even while the page itself is loading which by itself I understand why.

The problem for me is I want to make a post ajax call to save the splitter size and I want to minimize the calls to resize events the application user triggers while resizing the pane with the mouse only.

How would one go about that since I've noticed the layoutChange event is getting deprecated soon and I don't want to rely on something that's not going to be there in a next revision :)

2 Answers, 1 is accepted

Sort by
0
Dorian
Top achievements
Rank 2
answered on 13 Feb 2014, 11:54 AM
I've partially succeeded in achieving my goal by a simple boolean check.. yet I still get one resize event jQuery post instead of three I had before. If anyone has an idea of how to eliminate that one as well I would really appreciate it.




0
Dimo
Telerik team
answered on 14 Feb 2014, 03:26 PM
Hello Dorian,

If you want to skip handling the Splitter's resize events, which are fired while the widget layout is being adjusted initially, you can bind to the resize event after creating the Splitter.

http://docs.telerik.com/kendo-ui/getting-started/widgets#example---subscribe-to-an-event-using-the-bind-method

Please note that the resize event is also fired when the browser window is resized.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Splitter
Asked by
Dorian
Top achievements
Rank 2
Answers by
Dorian
Top achievements
Rank 2
Dimo
Telerik team
Share this question
or