Retrieving the JS object

2 posts, 0 answers
  1. Sagi
    Sagi avatar
    61 posts
    Member since:
    Sep 2008

    Posted 05 Jan 2016 Link to this post


    In order to get the chart object from the dom I use $("#selector").data("kendoChart")

    can i use the same with navbar (e.g. $("#selector").data("kendoNavbar")) cause it does not seem to work.

    If not , is there another way to get the JS object from the html


    <div data-role="layout" data-id="drawer-layout"   data-init="onInit" data-show="showDemoLayout">
        <header data-role="header">
            <div data-role="navbar">
                <a data-role="button" id="drawer" data-rel="drawer"  href="#my-drawer" data-icon="hamburger" data-align="left"></a>
                <span data-role="view-title"></span>
                <a data-align="right" data-icon="source-code" data-click="goToSourceCode" data-role="button" title="Show this demo source code"></a>
                <a data-align="right" data-role="button" class="nav-button" data-icon="home" data-transition="slide" href="#/"></a>


      need the navbar object here....


  2. Venelin
    Venelin avatar
    352 posts

    Posted 07 Jan 2016 Link to this post

    Hi Sagi,

    You have to use .data("kendoMobileNavBar") instead. Here is an example:

    More you can find in our online documentation:

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top