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.
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
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
}
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
Hello James,
The resize event is now fired later, so you can safely use it.
Regards,
Dimo
Telerik
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
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
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!