Is there a way to show and hide the drawer very quickly ?

8 posts, 0 answers
  1. Yohann
    Yohann avatar
    54 posts
    Member since:
    Jan 2014

    Posted 24 Apr 2014 Link to this post

    Hello,

    I am beta testing my app and they told me that they didn't realize there was a menu.

    So i would like to partially open it and the hide it very quickly so that the notice their positions.

    Is there a way to do it with the drawers methods ?

    Many Thanks
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 24 Apr 2014 Link to this post

    Hello Yohann,

    There is not built-in way to achieve this, however here is a solution that uses two setTimeout() functions (needed because of the asynchronous nature of the widget), that achieve exactly his. Of course you can modify the timeout setting:

    http://trykendoui.telerik.com/@Kiril/ogah

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Yohann
    Yohann avatar
    54 posts
    Member since:
    Jan 2014

    Posted 24 Apr 2014 Link to this post

    Thank you very much and sorry for my very bad english this time. It seems i was very tired the other day :)

  5. Yohann
    Yohann avatar
    54 posts
    Member since:
    Jan 2014

    Posted 24 Apr 2014 Link to this post

    Is there a way not to show the menu entirely before closing it ?
  6. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 25 Apr 2014 Link to this post

    Hi Yohann,

    You can increase the timeout in order to show the drawer for some longer period, like this:

    http://trykendoui.telerik.com/@Kiril/ogah/2

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. Naresh
    Naresh avatar
    2 posts
    Member since:
    Apr 2014

    Posted 06 May 2014 in reply to Kiril Nikolov Link to this post

    hello Nikolov,
         I tried your solution but it doesn't work. it throws an error on  this line -  $("#my-drawer").data("kendoMobileDrawer").show();
    the error is :
        Uncaught TypeError: Cannot read property 'scroller' of undefined

        I even tried copying your entire code from your working example from this link - http://trykendoui.telerik.com/@Kiril/ogah but unfortunately it's throwing the same error.
  8. Naresh
    Naresh avatar
    2 posts
    Member since:
    Apr 2014

    Posted 07 May 2014 in reply to Naresh Link to this post

     Sorry Nikolov, your code works absolutely fine and thanks for your code.
  9. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 07 May 2014 Link to this post

    Hello Naresh,

    Glad it helped!

    Regards,
    Kiril Nikolov
    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