TabStrip clear method?

4 posts, 0 answers
  1. Robert
    Robert avatar
    198 posts
    Member since:
    Aug 2009

    Posted 31 Oct 2012 Link to this post

    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
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 02 Nov 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Robert
    Robert avatar
    198 posts
    Member since:
    Aug 2009

    Posted 02 Nov 2012 Link to this post

    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>
  5. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 02 Nov 2012 Link to this post

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