Multiple Layouts

Thread is closed for posting
3 posts, 0 answers
  1. Kori
    Kori avatar
    73 posts
    Member since:
    Dec 2008

    Posted 12 Feb 2016 Link to this post

    Is there a way (documented, sample code, etc to at least see how it might work) where I can use mutliple layouts? The majority of the app uses a drawer navigation, but the unauthenticated part of the app (first run, login) shouldn't use the drawer navigation and it shouldn't be accessible.

     I've created a layout which is no-nav and no-header like this:

    1.<div data-role="layout" data-id="main-nonav-noheader">
    2.    <!-- application views will be rendered here -->

    And setting the first view to that layout works fine: = new, {
    2.    skin: 'flat',
    3.    initial: 'components/startView/view.html'

    But you an easily drag the screen to reveal the drawer navigation, which I don't want to be possible.

    It's made worse by the "startView" component using a scrollView to show the user four pages of "here's how this app works" before directing them to the login page. This "startView" is really only for new users who run the app for the first time, but generally they would either get logged in after using touchId/pin, or login again if the JWT token is expired.

    Any ideas?

    None of the samples seem to do anything complex in terms of layout, from what I can tell.

  2. Kori
    Kori avatar
    73 posts
    Member since:
    Dec 2008

    Posted 12 Feb 2016 Link to this post

    Oh, I see - I needed to set the data-views property on the drawer. Found on:

    Though, my suggestion would be to document this more on anything pertaining to drawers and layouts.

  3. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 17 Feb 2016 Link to this post

    Hello Kori,

    This property is described in the Drawer overview article here:
    Associate Drawer with Remote Views

    If you want the Kendo UI team to extend the explanation in this article, or add the information to other articles as well, you can write in their feedback portal.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top