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

Keep Drawer Open

4 Answers 201 Views
Drawer (Mobile)
This is a migrated thread and some comments may be shown as answers.
Davin
Top achievements
Rank 1
Davin asked on 06 Nov 2013, 10:15 PM
When in landscape mode, we would like to prevent the drawer from closing. But in portrait we would like to allow it to operate as usual. 

Adding an onHide then immediately calling .show() seems to fire to quick. Is there a better way to keep this open under certain conditions?

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 07 Nov 2013, 07:44 AM
Hello Davin,

This behavior is in fact available as part of our Q3 release, currently in beta - but is part of the splitview widget. You can take a look at the following jsbin. In order to test the auto-collapse feature, please preview the results on a real device.

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Davin
Top achievements
Rank 1
answered on 07 Nov 2013, 02:09 PM
What I am trying to get done is having two types of views depending on the overall size of the device.

SplitView for tablet sized devices and Drawer for phone sized devices.

Is there a mechanism to use these conditionally, without having to publish two separate apps? 
0
Accepted
Petyo
Telerik team
answered on 08 Nov 2013, 01:17 PM
Hi Davin,

Please check this tutorial, which describes the necessary steps to build an "universal" app. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Davin
Top achievements
Rank 1
answered on 08 Nov 2013, 02:19 PM
I think this will do, thank you.
Tags
Drawer (Mobile)
Asked by
Davin
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Davin
Top achievements
Rank 1
Share this question
or