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

[object] has no method collapse

2 Answers 82 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Cristofer
Top achievements
Rank 1
Cristofer asked on 10 Jan 2012, 11:04 PM
Hello, I'm new to Kendo UI

I want you
 when  click a button to collapse the splitter.

This is my
 code:http://jsfiddle.net/N8gE3/

When call the function I get a message:

Uncaught TypeError: Object [object Object] has no method 'collapse'

Please Help me

2 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 11 Jan 2012, 09:18 AM

Since kendoSplitter is a jQuery plug-in, it returns a jQuery object that does not have a "collapse" method. In order to get the splitter object, you need to call .data("kendoSplitter"). Here's an updated jsFiddle.

Since you are new to Kendo UI, you can refer to the online demos code to learn the basics quickly.

All the best,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Cristofer
Top achievements
Rank 1
answered on 11 Jan 2012, 02:03 PM
Thank you very much.

You should put a simple example spliter events. It's a little hard to understand thisparticular example.

That would be helpful.
Tags
Splitter
Asked by
Cristofer
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Cristofer
Top achievements
Rank 1
Share this question
or