NavBar title does not show up on Android

5 posts, 1 answers
  1. Christian
    Christian avatar
    24 posts
    Member since:
    Sep 2008

    Posted 05 Jun 2012 Link to this post

    When I set the navbar title in HTML or via JavaScript
    $("#resultsViewNavBar").data("kendoMobileNavBar").title(currentUser);
    

    ... it will just not be displayed/shown on Android devices. Is this by design?
    If yes: can we change/enable/override this behavior?

    Thanks.
  2. Answer
    Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 06 Jun 2012 Link to this post

    Hi Christian,

    Yes, it is by design for Android - the titles should go in the top action bar in Android 4 (and Android 2 usually doesn't have titles at all), however the NavBar doesn't support action bar styling, at least yet. If you need to show it, you can override it with enough specificity (to avoid the !important and to constrain the style to Android):
    .km-android .km-navbar div.km-view-title
    {
        display: inline-block;
    }


    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
  4. Christian
    Christian avatar
    24 posts
    Member since:
    Sep 2008

    Posted 06 Jun 2012 Link to this post

    Hi Kamen,

    wonderful - thanks for the quick and correct :) answer.

    Cheers.
  5. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 12 Sep 2012 Link to this post

    Hi Kamen,

    That's a really useful tip.

    might be worth adding to the documentation.

    http://docs.kendoui.com/documentation/getting-started/mobile/navbar/overview 

    Thanks,
    Norman.
  6. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 17 Sep 2012 Link to this post

    Hi Norman,

    That's a good suggestion, I've added the style to the NavBar Getting Started section, it will be live soon. It also includes the visibility: visible style that is needed in Q2 SP1 onwards.

    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!
Back to Top
Kendo UI is VS 2017 Ready