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

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

7 Answers 91 Views
Drawer (Mobile)
This is a migrated thread and some comments may be shown as answers.
Yohann
Top achievements
Rank 1
Yohann asked on 24 Apr 2014, 06:44 AM
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

7 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 24 Apr 2014, 09:13 AM
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!
 
0
Yohann
Top achievements
Rank 1
answered on 24 Apr 2014, 05:38 PM
Thank you very much and sorry for my very bad english this time. It seems i was very tired the other day :)

0
Yohann
Top achievements
Rank 1
answered on 24 Apr 2014, 05:59 PM
Is there a way not to show the menu entirely before closing it ?
0
Kiril Nikolov
Telerik team
answered on 25 Apr 2014, 07:36 AM
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!
 
0
Naresh
Top achievements
Rank 1
answered on 07 May 2014, 04:50 AM
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.
0
Naresh
Top achievements
Rank 1
answered on 07 May 2014, 05:42 AM
 Sorry Nikolov, your code works absolutely fine and thanks for your code.
0
Kiril Nikolov
Telerik team
answered on 07 May 2014, 11:59 AM
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!
 
Tags
Drawer (Mobile)
Asked by
Yohann
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Yohann
Top achievements
Rank 1
Naresh
Top achievements
Rank 1
Share this question
or