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

Backbutton appears on every page

1 Answer 143 Views
Button (Mobile)
This is a migrated thread and some comments may be shown as answers.
softwarea
Top achievements
Rank 1
softwarea asked on 21 Oct 2012, 02:24 PM
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

1 Answer, 1 is accepted

Sort by
0
softwarea
Top achievements
Rank 1
answered on 24 Oct 2012, 04:38 PM
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!
Tags
Button (Mobile)
Asked by
softwarea
Top achievements
Rank 1
Answers by
softwarea
Top achievements
Rank 1
Share this question
or