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

Retrieving the JS object

1 Answer 11 Views
NavBar
This is a migrated thread and some comments may be shown as answers.
Sagi
Top achievements
Rank 1
Sagi asked on 05 Jan 2016, 08:47 PM

Hi,

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>
        </div>
    </header>
</div>

<script>

  need the navbar object here....

<script>

1 Answer, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 07 Jan 2016, 07:19 AM
Hi Sagi,

You have to use .data("kendoMobileNavBar") instead. Here is an example: http://dojo.telerik.com/@vpetrov/upUya/2

More you can find in our online documentation: http://docs.telerik.com/kendo-ui/api/javascript/mobile/ui/NavBar#kendomobileuinavbar

Regards,
Venelin
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
NavBar
Asked by
Sagi
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Share this question
or