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

Splitter's resize event is not good.

6 Answers 169 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
mjohn mjohn
Top achievements
Rank 1
mjohn mjohn asked on 02 Feb 2013, 01:32 PM
hi.
I found the splitter's  resize event is activated before the pane's size change. but I want  resize event activated  after pane's size changed, how?
Thanks.


6 Answers, 1 is accepted

Sort by
0
Accepted
Richard
Top achievements
Rank 1
answered on 03 Feb 2013, 09:34 PM
The final line of code in the _resize method is to trigger LAYOUTCHANGE.

So you may want to use a layoutChange: handler instead
See http://docs.kendoui.com/api/web/splitter#layoutchange

If you are using a resize: handler, you can know the size that will be applied by kendoui by examining the panes data.
i.e.

<div id="splitter">
  <div id="leftPane"></div>
  <div id="rightPane"></div>
</div>

...
$('#splitter').kendoSplitter ({
...
resize: myResizeHandler,
...
})

var myResizeHandler = function () {
    $('#leftPane').data('pane').size
}
0
mjohn mjohn
Top achievements
Rank 1
answered on 04 Feb 2013, 03:42 AM
Thanks. it works.
0
James
Top achievements
Rank 1
answered on 18 Dec 2013, 05:11 PM
I apologize for bringing up such an old thread but I am in a similar situation.  I notice that the documentation states layoutChange will be removed in the future.  How can we then take actions AFTER the pane's size has changed using only the resize event?
0
Dimo
Telerik team
answered on 19 Dec 2013, 12:22 PM
Hello James,

The resize event is now fired later, so you can safely use it.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
James
Top achievements
Rank 1
answered on 19 Dec 2013, 02:15 PM
We're currently running v2013.2.716, was this changed implemented in a later version?
0
Dimo
Telerik team
answered on 19 Dec 2013, 02:29 PM
Hello James,

No, the changes are implemented in 2013.3.1119

http://docs.kendoui.com/getting-started/changes-and-backward-compatibility#kendoui-2013-q3


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
mjohn mjohn
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
mjohn mjohn
Top achievements
Rank 1
James
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or