tabstrip.tabGroup.children("li:first")); return me an error : missing ; before statement

6 posts, 1 answers
  1. benjamin
    benjamin avatar
    7 posts
    Member since:
    Aug 2011

    Posted 12 Aug 2011 Link to this post

    Hi,
    i'm trying KendoUI tabStrip, but each time i try to use the API as required in http://demos.kendoui.com/tabstrip/api.html
    it returned me an error :
         tabstrip.tabGroup.children("li:first")); return me an error : missing ; before statement

    thanks for help
  2. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 15 Aug 2011 Link to this post

    Hello Benjamin,

    I'm not sure what is causing this error from the code you've posted. Can you provide a sample page for it or at least bigger snippet?

    Kind regards,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. benjamin
    benjamin avatar
    7 posts
    Member since:
    Aug 2011

    Posted 16 Aug 2011 Link to this post

    Hi,
    I have tested both with one of my page (with script written in the page) and with one of your pages (with script written in th firebug console).
    i've done the same test on one of your web pages :
    http://demos.kendoui.com/tabstrip/index.html

    then i launch thoses scripts in my firebug console :
    var myVarName = $('#tabstrip').kendoTabStrip(); // return undefined
    myVarName; // return [div#tabstrip.t-widget]
    myVarName.tabGroup.children("li:last"); // throw "toto.tabGroup is undefined"

    On both tests i get the same problem.

    Can you help me ?
    Thanks
  4. Answer
    Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 16 Aug 2011 Link to this post

    Hello Benjamin,

    When you initialize a Kendo UI widget, it returns the jQuery object again to allow you to continue chaining. The actual TabStrip object after the initialization is held in the kendoTabStrip data attribute of the jQuery object. Thus your example should be modified like this:

    var myVarName = $('#tabstrip').kendoTabStrip().data("kendoTabStrip");
    myVarName.tabGroup.children("li:last");


    Regards,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. benjamin
    benjamin avatar
    7 posts
    Member since:
    Aug 2011

    Posted 16 Aug 2011 Link to this post

    Okay, thanks for help.
    I imagine it's the same thing for all UI Widget ? I really didn't see that point, it will really help me for instance.

    Thank you again. I will continue to test your framework, because you are what is missing to Jquery : a coherent framework and widget group, like ExtJS is.
  6. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 16 Aug 2011 Link to this post

    Hi Benjamin,

    Yes, all UI widgets are initialized like that, check the documentation here.

    I'm glad that you like our framework.

    All the best,
    Kamen Bundev
    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