[object] has no method collapse

3 posts, 0 answers
  1. Cristofer
    Cristofer avatar
    2 posts
    Member since:
    Jan 2012

    Posted 10 Jan 2012 Link to this post

    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. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 11 Jan 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Cristofer
    Cristofer avatar
    2 posts
    Member since:
    Jan 2012

    Posted 11 Jan 2012 Link to this post

    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.
Back to Top