Add href's to NavBar?

2 posts, 0 answers
  1. Ronnie
    Ronnie avatar
    7 posts
    Member since:
    May 2012

    Posted 26 Jun 2012 Link to this post

    Hello,

    From what I am seeing in the demos, NavBar just displays a static list... What would be the proper way to link each "Nav" item to another view?

    Thanks!
    -Ronnie
  2. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 29 Jun 2012 Link to this post

    Hi Ronnie,

    You can set the button href attribute to point to the ID of the view you want to show and it would navigate to it on click, like this:
    <div data-role="view" id="source" data-title="Source">
        <header data-role="header">
            <div data-role="navbar">
                ...
                <a data-align="right" data-role="button" href="#target">Click me</a>
            </div>
        </header>
    </div>
    <div data-role="view" id="target" data-title="Target">
        ...
    </div>


    Kind regards,
    Kamen Bundev
    the Telerik team
    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
Back to Top