Splitter's resize event is not good.

7 posts, 1 answers
  1. mjohn mjohn
    mjohn mjohn avatar
    9 posts
    Member since:
    Mar 2010

    Posted 02 Feb 2013 Link to this post

    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.


  2. Answer
    RichardAD
    RichardAD avatar
    105 posts
    Member since:
    Feb 2012

    Posted 03 Feb 2013 Link to this post

    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
    }
  3. Kendo UI is VS 2017 Ready
  4. mjohn mjohn
    mjohn mjohn avatar
    9 posts
    Member since:
    Mar 2010

    Posted 03 Feb 2013 Link to this post

    Thanks. it works.
  5. James
    James avatar
    2 posts
    Member since:
    Nov 2013

    Posted 18 Dec 2013 Link to this post

    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?
  6. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 19 Dec 2013 Link to this post

    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!
  7. James
    James avatar
    2 posts
    Member since:
    Nov 2013

    Posted 19 Dec 2013 Link to this post

    We're currently running v2013.2.716, was this changed implemented in a later version?
  8. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 19 Dec 2013 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready