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

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

5 Answers 221 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
benjamin
Top achievements
Rank 1
benjamin asked on 12 Aug 2011, 09:28 AM
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

5 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 15 Aug 2011, 09:13 AM
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!
0
benjamin
Top achievements
Rank 1
answered on 16 Aug 2011, 09:09 AM
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
0
Accepted
Kamen Bundev
Telerik team
answered on 16 Aug 2011, 09:18 AM
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!
0
benjamin
Top achievements
Rank 1
answered on 16 Aug 2011, 09:23 AM
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.
0
Kamen Bundev
Telerik team
answered on 16 Aug 2011, 12:29 PM
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!
Tags
TabStrip
Asked by
benjamin
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
benjamin
Top achievements
Rank 1
Share this question
or