Telerik Forums
Kendo UI for jQuery Forum
1 answer
113 views
Hi friends,

I have a simple html+css+js app .

I use a structure of tabs linked with divs for the sections menu.

My problem is that i have in a section ( on a div ) only a reference of a img that is on a remote url , but this img maybe will change, but have always the same name. I want to know if there is some method to force always i click on the tab ( div ) of this section to reload the content of this div, or reload always this img, because in this moment only load when the app is launched the first time.

Thx you very much.

<div id="tabstrip-3" data-role="view" data-title="3">
        <div class="test" id="offers">
            <img src="http://www.remoteurl.com/test/image.jpg" height="100%" width="100%"/>
        </div>
    </div>

<div data-role="footer">
            <div data-role="tabstrip">
                <a href="#/" data-icon="home">1</a>
                <a href="#tabstrip-2" data-icon="organize">2</a>
                <a href="#tabstrip-3" data-icon="favorites">3</a>
                <a href="#tabstrip-4" data-icon="about">4</a>
            </div>
        </div>
Petyo
Telerik team
 answered on 02 Apr 2014
5 answers
202 views
For many reasons I am using a tab strip as action buttons on a form instead of buttons.

First question:

I want to be able to deselect a tab once I have called its action.  For example I have the following snippet.

      <div data-role="footer">
            <div data-role="tabstrip" id="tabstrip" data-select="onTabSelected">
                <a data-icon="home">Save</a>
                <a data-icon="info">Previous</a>
                <a data-icon="details">Next</a>
                <a data-icon="camera">Scan</a>
            </div>
        </div>

And here is the select event

        function onTabSelected(e)
        {
            var index = $(e.item).index();

            console.log("tab index="index);

            if(index == 1)
            {
                    // do something
            }
            else if(index == 2)
            {
                    // do something
            }

            // deselect the tab item so the user can select it again and fire the select event

            return;
        }

Second question:

Can I use standard jquery icons like data-icon="ui-icon-carat-1-e"

Thanks in advance 





Shawn
Top achievements
Rank 2
 answered on 26 Mar 2014
4 answers
192 views
Greetings,

Unless I'm missing something, in Q1 2014 kendo mobile tabstrip, buttons now fail to launch the drawer properly.
 
I pasted a modified version of the mobile drawer sample with a footer that has a tabstrip with the same button that launches the drawer from the header navbar.  When you click the button in the footer's tabstrip, the drawer doesn't respond (nothing happens).

(to reproduce, save the code below in a file called "index2.html" in the folder for the mobile drawer sample: C:\Program Files (x86)\Telerik\Kendo UI Complete Q1 2014\examples\mobile\drawer in my case),

the drawer pops out fine when you use the button in the header's nav bar,

but fails to pop out when you use the button in the footer's tab strip.  

This was working in my project 2013 Q3, then I upgraded to the 2014 Q1 and it stopped working.

Do not take this as a complaint - Kendo is amazing and awesome.  You guys are making my 2014 fantastic.

-Mike Graham
<!DOCTYPE html>
<html>
<head>
    <title>Basic usage</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" >
    <script src="../../../js/jquery.min.js"></script>
    <script src="../../../js/kendo.all.min.js"></script>
    <link href="../../../styles/kendo.common.min.css" rel="stylesheet" />
    <link href="../../../styles/kendo.rtl.min.css" rel="stylesheet">
    <link href="../../../styles/kendo.default.min.css" rel="stylesheet">
    <script src="../../content/shared/js/console.js"></script>
    <link href="../../../styles/kendo.mobile.all.min.css" rel="stylesheet" />
    <style>
        [href*=index], #back-button
        {
            visibility: hidden;
        }
    </style>
</head>
<body>
    <div data-role="view" id="drawer-home" data-layout="drawer-layout" data-title="Inbox">
    <ul data-role="listview" class="inboxList">
        <li>
            <h3 class="time">07:56</h3><h3>John Doe</h3>
            <h2>Monday meeting</h2>
            <p>Hi Tom, Since Monday I'll be out of office, I'm rescheduling the meeting for Tuesday.</p>
        </li>
        <li>
            <h3 class="time">08:21</h3><h3>Joe Harper</h3>
            <h2>I'm sorry, Tom</h2>
            <p>Hi Tom, my aunt comes for a visit this Saturday, so I can't come back to St. Pete...</p>
        </li>
        <li>
            <h3 class="time">08:33</h3><h3>Sarah Connor</h3>
            <h2>Regarding org chart changes</h2>
            <p>Tom, I checked the new org chart last night and I have some reservations about it...</p>
        </li>
        <li>
            <h3 class="time">08:40</h3><h3>John Doe</h3>
            <h2>Re: Regarding org chart changes</h2>
            <p>Agree with Sarah...</p>
        </li>
        <li>
            <h3 class="time">09:16</h3><h3>Jane Parker</h3>
            <h2>Your Costume is ready</h2>
            <p>Hi mr. Sawyer, I'm sorry for the delay, your Halloween costume is ready. The bears...</p>
        </li>
        <li>
            <h3 class="time">11:03</h3><h3>Becky Thatcher</h3>
            <h2>Out tonight?</h2>
            <p>Honey, wanna go out tonight to grab some chicken? My weekly vouchers for cooking...</p>
        </li>
    </ul>
</div>
 
<div data-role="view" id="drawer-starred" data-layout="drawer-layout" data-title="Starred Items">
    <ul data-role="listview">
        <li data-icon="star">Monday meeting</li>
        <li data-icon="star">Regarding org chart changes</li>
        <li data-icon="star">Re: Regarding org chart changes</li>
        <li data-icon="star">Your Costume is ready</li>
        <li data-icon="star">Out tonight?</li>
    </ul>
</div>
 
<div data-role="view" id="drawer-drafts" data-layout="drawer-layout" data-title="Drafts">
    <ul data-role="listview">
        <li data-icon="compose">Re: Monday meeting</li>
        <li data-icon="compose">Untitled message 1</li>
        <li data-icon="compose">Untitled message 2</li>
        <li data-icon="compose">Re: Regarding org chart changes</li>
        <li data-icon="compose">Re: Re: Regarding org chart changes</li>
        <li data-icon="compose">Re: Your Costume is ready</li>
        <li data-icon="compose">Re: Out tonight?</li>
        <li data-icon="compose">Untitled message 3</li>
    </ul>
</div>
 
<div data-role="view" id="drawer-sent" data-layout="drawer-layout" data-title="Sent Items">
    <ul data-role="listview">
        <li>Build enterprise apps</li>
        <li>Fw: Regarding Multiline textbox</li>
        <li>Away next week</li>
        <li>Fw: Your Costume is ready</li>
        <li>Update completed</li>
        <li>Survey</li>
        <li>Problem with this account</li>
        <li>Advice For Designers</li>
        <li>Fw: Missing Book</li>
        <li>Fun & useful reading</li>
    </ul>
</div>
 
<div data-role="view" id="drawer-deleted" data-layout="drawer-layout" data-title="Deleted Items">
    <ul data-role="listview">
        <li data-icon="trash">Untitled message 4</li>
        <li data-icon="trash">Untitled message 5</li>
    </ul>
</div>
 
<div data-role="view" id="drawer-spam" data-layout="drawer-layout" data-title="Spam">
    <ul data-role="listview">
        <li>90% Discount!</li>
        <li>90% Discount!</li>
        <li>One time offer!</li>
    </ul>
    <a data-role="button" style="background-color: darkred; display: block; margin: 2em; font-size: 1.4em;">Delete Spam</a>
</div>
 
<div data-role="drawer" id="my-drawer" style="width: 270px" data-views="['drawer-home', 'drawer-starred', 'drawer-deleted', 'drawer-spam', 'drawer-drafts', 'drawer-sent', '@Url.Content("~/mobile/m/drawer/index.html")']">
    <ul data-role="listview" data-type="group">
        <li>Mailbox
            <ul>
                <li data-icon="inbox"><a href="#drawer-home" data-transition="none">Inbox</a></li>
                <li data-icon="star"><a href="#drawer-starred" data-transition="none">Starred Items</a></li>
                <li data-icon="compose"><a href="#drawer-drafts" data-transition="none">Drafts</a></li>
                <li data-icon="sent"><a href="#drawer-sent" data-transition="none">Sent Items</a></li>
                <li data-icon="trash"><a href="#drawer-deleted" data-transition="none">Deleted Items</a></li>
                <li data-icon="spam"><a href="#drawer-spam" data-transition="none">Spam</a></li>
            </ul>
        </li>
        <li>Tasks
            <ul>
                <li>To Do</li>
                <li>In Progress</li>
                <li>Done</li>
                <li>High Priority</li>
                <li>Low Priority</li>
            </ul>
        </li>
        <li>Account
            <ul>
                <li data-icon="settings">Settings</li>
                <li data-icon="off">Log Out</li>
            </ul>
        </li>
    </ul>
</div>
 
<div data-role="layout" data-id="drawer-layout">
    <header data-role="header">
        <div data-role="navbar">
            <a data-role="button" data-rel="drawer" href="#my-drawer" data-icon="drawer-button" data-align="left"></a>
            <span data-role="view-title"></span>
            <a data-align="right" data-role="button" class="nav-button" href="#/">Index</a>
        </div>
    </header>
    <footer data-role="footer">
        <div data-role="tabstrip">
            <a data-role="button" data-rel="drawer" href="#my-drawer" data-icon="drawer-button" data-align="left"></a>
        </div>
    </footer>
</div>
 
<script>
    // reset global drawer instance, for demo purposes
    kendo.mobile.ui.Drawer.current = null;
</script>
 
<style>
    .km-ios #my-drawer .km-content, .km-android #my-drawer .km-content, .km-blackberry #my-drawer .km-content,
    .km-ios #my-drawer .km-list > li, .km-android #my-drawer .km-list > li, .km-blackberry #my-drawer .km-list > li,
    .km-ios #my-drawer .km-listview-link > .km-icon, .km-android #my-drawer .km-listview-link > .km-icon, .km-blackberry #my-drawer .km-listview-link > .km-icon,
    .km-ios #my-drawer .km-list li > .km-icon, .km-android #my-drawer .km-list li > .km-icon, .km-blackberry #my-drawer .km-list li > .km-icon
    {
        background-color: #4e4e4e;
        color: #fff;
    }
 
    .km-ios #my-drawer .km-group-title,
    .km-blackberry #my-drawer .km-group-title
    {
        background-color: #6e6e6e;
        color: #fff;
    }
 
    .km-drawer-button:before, .km-drawer-button:after  { content: "\E077"; }
    .km-inbox:before, .km-inbox:after { content: "\E0B0"; }
    .km-sent:before, .km-sent:after { content: "\E0C6"; }
    .km-trash:before, .km-trash:after { content: "\E0C3"; }
    .km-spam:before, .km-spam:after { content: "\E0C5"; }
    .km-star:before, .km-star:after { content: "\E0D7"; }
    .km-settings:before, .km-settings:after { content: "\E0DA"; }
    .km-off:before, .km-off:after { content: "\E0B9"; }
 
    .inboxList
    {
        font-size: .8em;
    }
 
    .inboxList p,
    .inboxList h2,
    .inboxList h3
    {
        margin: 5px 2px;
    }
 
    .inboxList p,
    .inboxList h3
    {
        color: #777;
    }
 
    .inboxList h3.time
    {
        color: #369;
        float: left;
        margin-right: 10px;
    }
</style>
 
 
    <script>
        window.kendoMobileApplication = new kendo.mobile.Application(document.body);
    </script>
</body>
</html>

Kiril Nikolov
Telerik team
 answered on 25 Mar 2014
1 answer
33 views
Hello,

i build a mobile web for our company using for our BlackBerry Z10.

When using a form with some inputs ... the tabstrip moves up when onscreen keyboard comes up.
Is there a way to prevent tabstrip moving with onscreen keyboard ?

I readed some threads here but the solutions there doesn`t work for me.

Regards

Jürgen
Kiril Nikolov
Telerik team
 answered on 13 Mar 2014
4 answers
104 views
hi,

Please advise....How can i prevent tabstrip footer blinking when i load a remote view? any trick?

This is my remote view:
<div data-role="view" id="order_list_mobile" data-layout="mobile-tabstrip" data-title="<?php echo $this->language->get('text_sale');?>"  data-reload="true" data-show="afterShow">
    <header data-role="header">
        <div data-role="navbar">
            <a data-role="backbutton" data-align="left">Back</a>
            <span data-role="view-title"><?php echo $this->language->get('text_sale');?></span>
        </div>
    </header>
    <ul data-role="listview" data-style="inset" data-type="group" class="inboxList">
        <li>
            <?php echo $this->language->get('text_sale');?>
            <ul>
                <?php if ($orders) { ?>
                        <?php $id = 0;?>
                        <?php foreach ($orders as $order) { ?>
                            <li>
                                <h3 class="time"><?php echo $order['customer']; ?></h3>
                                <h3><?php echo $order['date_added']; ?></h3>
                                <h3><?php echo $order['total']; ?></h3>
                                <p><?php echo $order['date_added']; ?></p>
                                 
                                <?php foreach ($order['action'] as $action) { ?>
                                    <a data-role="button" href="<?php echo $action['href'];?>">
                                        <?php echo $action['text']; ?>                       
                                    </a>
                                <?php } ?>
                                 
                            </li>
                        <?php } ?>
                     
                <?php } ?>
            </ul>
        </li>
    </ul>
</div>
 
<script>
    function afterShow(e) {
        var tabstrip = e.view.footer.find(".km-tabstrip").data("kendoMobileTabStrip");
            tabstrip.switchTo(2);
    }
</script>


And this is my footer that  initialized just one time:
<div data-role="layout" data-id="mobile-tabstrip">
    <header data-role="header">
        <div data-role="navbar">
            <a data-align="left" data-role="backbutton" class="nav-button"><?php echo $this->language->get('button_back');?></a>
            <span data-role="view-title"></span>
            <a data-align="right" data-role="button" class="nav-button" href="#index" data-icon="refresh"></a>
        </div>
    </header>
    <div data-role="footer">
        <div data-role="tabstrip" id="myTabStrip">
            <a href="#tabstrip-home" data-icon="recents"><?php echo $this->language->get('tab_general');?></a>
            <a href="#index.php?route=catalog/product&token=<?php echo $this->session->data['token'];?>" data-icon="cart"><?php echo $this->language->get('text_catalog');?></a>
            <a href="#index.php?route=sale/order&token=<?php echo $this->session->data['token'];?>" data-icon="bookmarks"><?php echo $this->language->get('text_sale');?></a>           
            <a href="#tabstrip-settings" data-icon="settings"><?php echo $this->language->get('text_setting');?></a>
        </div>
    </div>
</div>



Please see the video with my problem:

http://www.youtube.com/watch?v=OI8pkYXC6rk

Petyo
Telerik team
 answered on 26 Feb 2014
3 answers
71 views
Hi,

I've a little problem. I'm using the TabStrip and i need to clic twice on tabstrip to activate the view or press F5 to refresh the page. I posted a video to see the problem.

http://www.youtube.com/watch?v=z8GkVn8QGB0


please your help.

I posted part of the source:

<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>Dashboard</title>
    <meta name="author" content="">
    <script src="view/theme/js/jquery.min.js"></script>
    <script src="view/theme/js/kendo.all.min.js"></script>
    <link href="view/theme/css/kendo.common.min.css" rel="stylesheet" />
    <link href="view/theme/css/kendo.rtl.min.css" rel="stylesheet">
    <link href="view/theme/css/kendo.default.min.css" rel="stylesheet">
    <link href="view/theme/css/kendo.mobile.all.min.css" rel="stylesheet" />
    <link href="view/theme/css/kendo.mobile.exported.css" rel="stylesheet" />
</head>
<body>
    <div data-role="layout" data-id="mobile-view">
        <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>
                <a data-align="right" data-role="button" class="nav-button" href="#index">Index</a>
            </div>
        </header>
    </div>
    <div data-role="view" id="tabstrip-home" data-title="General" data-layout="mobile-tabstrip">
        <div class="head"> </div>
        <ul data-role="listview" data-style="inset" data-type="group">
            <li>
                Overview           
                <ul>
                    <li>Total Sales:<span class="sales-up">$15,436</span></li>
                    <li>Total Sales This Year:<span class="sales-up">$15,436</span></li>
                    <li>Total Orders:<span class="sales-up">3</span></li>
                    <li>No. of Customers:<span class="sales-up">1</span></li>
                    <li>Customers Awaiting Approval:<span class="sales-up">0</span></li>
                    <li>Reviews Awaiting Approval:<span class="sales-up">0</span></li>
                    <li>No. of Affiliates:<span class="sales-up">0</span></li>
                    <li>Affiliates Awaiting Approval:<span class="sales-up">0</span></li>
                </ul>
            </li>
        </ul>
        <ul data-role="listview" data-style="inset" data-type="group" class="inboxList">
            <li>
                Latest 10 Orders           
                <ul>
                    <li>
                        <a data-rel="external" href="product?order_id=3">
                            <h3 class="time">Orlando Jerez</h3>
                            <h3>14/02/2014</h3>
                            <h3>$15,005</h3>
                            <p>14/02/2014</p>
                        </a>
                    </li>
                    <li>
                        <a data-rel="external" href="product?order_id=2">
                            <h3 class="time">Orlando Jerez</h3>
                            <h3>11/02/2014</h3>
                            <h3>$106</h3>
                            <p>11/02/2014</p>
                        </a>
                    </li>
                    <li>
                        <a data-rel="external" href="product?order_id=1">
                            <h3 class="time">Orlando Jerez</h3>
                            <h3>11/02/2014</h3>
                            <h3>$325.00</h3>
                            <p>11/02/2014</p>
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    <div data-role="view" id="tabstrip-sales" data-title="Profile" data-layout="mobile-tabstrip">
        <ul data-role="listview" data-style="inset" data-type="group">
            <li>
                <ul>
                    <li>
                        <h2>Sales <span>page</span></h2>
                        <img src="../../content/mobile/overview/carine.jpg" />
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    <div data-role="view" id="tabstrip-config" data-title="Profile" data-layout="mobile-tabstrip">
        <ul data-role="listview" data-style="inset" data-type="group">
            <li>
                <ul>
                    <li>
                        <h2>Config <span>page</span></h2>
                        <img src="../../content/mobile/overview/carine.jpg" />
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    <style>
        .inboxList
        {
        font-size: .8em;
        }
        .inboxList p,
        .inboxList h2,
        .inboxList h3
        {
        margin: 5px 2px;
        }
        .inboxList p,
        .inboxList h3
        {
        color: #777;
        }
        .inboxList h3.time
        {
        color: #369;
        float: left;
        margin-right: 10px;
        }
    </style>
    <style>
        .km-ventas:after,
        .km-ventas:before
        {
        content: "\e09c";
        }
        .km-total:after,
        .km-total:before
        {
        content: "\e086";
        }
    </style>
    <div data-role="layout" data-id="mobile-tabstrip">
        <header data-role="header">
            <div data-role="navbar">
                <a data-align="left" data-role="backbutton" class="nav-button">Back</a>
                <span data-role="view-title"></span>
                <a data-align="right" data-role="button" class="nav-button" href="#index" data-icon="refresh"></a>
            </div>
        </header>
        <div data-role="footer">
            <div data-role="tabstrip">
                <a href="#tabstrip-home" data-icon="recents">General</a>
                <a href="#index.php?route=catalog/product&token=5f7d94ff10d1569f07d17e5caba9c82d" data-icon="cart">Catalog</a>
                <a href="#tabstrip-sales" data-icon="bookmarks">Sales</a>
                <a href="#tabstrip-config" data-icon="settings">Settings</a>
            </div>
        </div>
    </div>
    <style scoped>
        #tabstrip-home .head {
        display: block;
        margin: 1em;
        height: 110px;
        background: url(images/logo.jpg) no-repeat center center;
        -webkit-background-size: 100% auto;
        background-size: 100% auto;
        }
        .km-ios #tabstrip-home .head {
        -webkit-border-radius: 10px;
        border-radius: 10px;
        }
    </style>
    <style scoped>
        #tabstrip-home h2 {
        display: inline-block;
        font-size: 1.1em;
        margin: 1.5em 0 0 .7em;
        }
        #tabstrip-home h2 span {
        display: block;
        clear: both;
        font-size: 1.8em;
        margin: .1em 0 0 0;
        }
        #tabstrip-home img {
        width: 5em;
        height: 5em;
        float: left;
        margin: 1em;
        border: 1px solid rgba(0,0,0,.2);
        -webkit-border-radius: 4em;
        border-radius: 4em;
        }
        .sales-down,
        .sales-hold,
        .sales-up,
        .value {
        float: right;
        }
        .sales-up { color: green; }
        .sales-down { color: red; }
        .sales-hold { color: blue; }
        .value { color: #bbb; }
    </style>
    <script>
        new kendo.mobile.Application($(document.body), {
        // platform: "ios", //Platform can be one of "ios", "ios7", "android", "blackberry", "wp", "meego"
        skin: "flat",
        transition: "slide",
        hideAddressBar: true,
        serverNavigation: false,
        loading: "<h1>Cargando...</h1>"
        });
 
    </script>
</body>
</html>


Kiril Nikolov
Telerik team
 answered on 19 Feb 2014
1 answer
106 views
Using the guide at http://docs.telerik.com/kendo-ui/getting-started/mobile/icons#restyle-only-the-custom-icon I've added a custom mask icon using the latest recommended way to do it. Unfortunately my icons (glyphish pack) seem to be just a tiny bit too large for my taste and the background-size is having no effect when i try to change it.

km-root .km-pane .km-view .km-home-new {
    background-size: 90% 90%;
    -webkit-background-clip: border-box;
    background-color: white;
}
.km-home-new {
    -webkit-mask-box-image: url("images/53-house@2x.png");
    background-color: red;
}

I have tried as low as 10% 10% and it changes nothing.
Kiril Nikolov
Telerik team
 answered on 06 Feb 2014
4 answers
100 views
I'm encountering problems retrieving my app's tab strip using JQuery. Sometimes it works, sometimes it doesn't. Code snippet below:

function updateBadges() {
        console.log("Updating badges");
        var tabstrip = $("#tabstrip").data("kendoMobileTabStrip");
        if (tabstrip) {
            var reminderCount = getRemindersDataSource().view().length;
            console.log(reminderCount);
            if (reminderCount > 0)
                tabstrip.badge(2, reminderCount);
            else
                tabstrip.badge(2, false);
        } else {
            console.log("Can't find tabstrip");
        }
    }

Tabstrip is defined as:

<div id="tabstrip" data-role="tabstrip">
etc

Are there any constraints to be followed?

Thanks.
Jay
Top achievements
Rank 1
 answered on 15 Jan 2014
4 answers
35 views
With Android 4.1.2  There is a quick launch menu at the bottom of the device that will open to display a bunch of icons.  Well in my Mobile App when I click on the tabstrip to navigate... it's causing this menu to popup as if I clicked on the little button to bring it up.

Does anyone know whats going on here or how to prevent the quick launch menu from popping up when using the tabstrip?
Robert
Top achievements
Rank 1
 answered on 10 Jan 2014
2 answers
173 views
hello there!
i have 3 views "menu", "details" and "cart" which have a header and a footer. The tabstrip only has 2 tabs : "menu" and "cart". 

<div data-role="view" id="menu" data-title="Menu"  data-layout="myLayout" data-model="viewModel">
   here i have a listview with the category names and when i click on an "li" it goes to the #details view where products are filtered by the category name
</div>

<div  id="details" data-role="view" data-title="Details" data-layout="myLayout" data-transition="slide:left" data-model="viewModel" >
    <h3 class="item-title">#: name #</h3>
    <p class="item-info">#: description #</p>
    <a data-role="button" data-item-id="#:id#" class="details-link fa"  data-icon="cart" data-bind="click: addToCart" >#: price # lei</a>
</div>

the footer from myLayout looks like this:

<footer data-role="footer">
<div data-role="tabstrip" id="badgeIcon">
    <a href="#menu" class="fa" data-icon="home">Menu</a>
    <a href="#cart" class="fa" data-icon="cart" >Cart</a>
</div>
</footer>

i have onInit function which works and initializes the badge:

function onInit(e) {
 var tabstrip = e.layout.footer.find(".km-tabstrip").data("kendoMobileTabStrip");
 tabstrip.badge(1,0);
}

And the addToCart function is this
function addToCart(e) {
var tabstrip = $("#badgeIcon").data("kendoMobileTabStrip");
tabstrip.badge(1, +tabstrip.badge(1) + 1);

....rest of function which works perfectly...
}

The app loads in the #menu view from where it goes to #details view,  and then,  when i click on a #li it crashes and gives me an error on the " tabstrip.badge(1, +tabstrip.badge(1) + 1); " line

Uncaught TypeError: Cannot call method 'badge' of undefined 

If i load the app in the #details view ( index.html#details ) with all the items shown, it works and updates the cart badge, but i want to filter them and thats why i have the #menu view first.

I'm using the latest kendo latest release with jQuery1.9.1

Please give me your input and thanks in advance :)








Radu
Top achievements
Rank 1
 answered on 20 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?