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

3 posts, 0 answers
  1. Dorian
    Dorian avatar
    21 posts
    Member since:
    Nov 2013

    Posted 13 Feb 2014 Link to this post

    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. Dorian
    Dorian avatar
    21 posts
    Member since:
    Nov 2013

    Posted 13 Feb 2014 in reply to Dorian Link to this post

    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.




  3. Kendo UI is VS 2017 Ready
  4. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 14 Feb 2014 Link to this post

    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!
Back to Top