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

TabStrip clear method?

3 Answers 167 Views
TabStrip (Mobile)
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 31 Oct 2012, 05:55 PM
The kendo documentation states a clear() method: 

http://docs.kendoui.com/api/mobile/tabstrip

But yet there is none.

How can I clear the selection of the tabs.  

Robert

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 02 Nov 2012, 11:05 AM
Hello Robert,

As pointed in the documentation, in order to clear the selection of the tabs you can use the clear() method. For example: 
var tabStrip = $('[data-role="tabstrip"]').data("kendoMobileTabStrip");
tabStrip.clear();

Regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Robert
Top achievements
Rank 1
answered on 02 Nov 2012, 01:09 PM
The Kendo documentation is far from complete.  Can you point out where in documentation it states or shows an example of how to use this clear() method?  Looking in the documentation it only shows how to use the switchTo() method, that's it.

You suggestion does not work... it's returning the same error: "object doesn't support property or method 'clear'"

I believe I am using the latest release of the software and these are my includes:

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/kendo.web.min.js"></script>
<script type="text/javascript" src="js/kendo.mobile.min.js"></script>
0
Iliana Dyankova
Telerik team
answered on 02 Nov 2012, 04:52 PM
Hi Robert,

I am afraid there is no such example in the documentation. For your convenience I prepared a simple HTML page which illustrates the suggested approach in action (in the sample I used the Q3 Beta version).

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TabStrip (Mobile)
Asked by
Robert
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Robert
Top achievements
Rank 1
Share this question
or