Keep Drawer Open

5 posts, 1 answers
  1. Davin
    Davin avatar
    10 posts
    Member since:
    May 2012

    Posted 06 Nov 2013 Link to this post

    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?
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 07 Nov 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Davin
    Davin avatar
    10 posts
    Member since:
    May 2012

    Posted 07 Nov 2013 Link to this post

    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? 
  5. Answer
    Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 08 Nov 2013 Link to this post

    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!
  6. Davin
    Davin avatar
    10 posts
    Member since:
    May 2012

    Posted 08 Nov 2013 Link to this post

    I think this will do, thank you.
Back to Top
Kendo UI is VS 2017 Ready