Backbutton appears on every page

2 posts, 0 answers
  1. softwarea
    softwarea avatar
    77 posts
    Member since:
    Feb 2007

    Posted 21 Oct 2012 Link to this post

    Hi,

    when I use the following layout for all my views I realized that the Back button appears on every view.

    <section data-role="layout" data-id="default">
                <header data-role="header">
                    <div data-role="navbar">
                        <a class="nav-button" data-align="left" data-role="backbutton">Back</a>
                        <span data-role="view-title"></span>
                    </div>
                </header>
            </section>

    As far as I remember "jQuery mobile" automatically hides the back button on the first view by default - which is great because I surely don't want a back button on my first view.

    Having the back button even on the first view, is that by design in Kendo mobile?

    Thx
    Ingmar
  2. softwarea
    softwarea avatar
    77 posts
    Member since:
    Feb 2007

    Posted 24 Oct 2012 Link to this post

    I just got the following info from Telerik support team:

    The observed behavior is by design - if the Back button presents in the layout it will be available in all of the views which use this layout. As another approach (except the workaround with different layout for the first view) I can suggest to define header section in the first view - this will override the layout header. For example: 

    <div data-role="view" data-title="My First View" data-layout="mobile-view">
       <header data-role="header">
           <div data-role="navbar">
              <span data-role="view-title"></span>
           </div>
       </header>
        //....
    </div>

    Thanks, guys!
  3. Kendo UI is VS 2017 Ready
Back to Top