How to check a splitter pane's collapsed/expanded state?

4 posts, 0 answers
  1. Sarah
    Sarah avatar
    7 posts
    Member since:
    May 2012

    Posted 07 Nov 2012 Link to this post

    Is there a way to check the collapsed/expanded state of one of the splitter's internal panes?
  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 12 Nov 2012 Link to this post

    Hi Sarah,

    Splitter panes have client objects attached via jQuery to their DOM elements and the collapsed state information is available there:

    $("#pane-dom-element-id").data("pane").collapsed


    Greetings,
    Dimo
    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. Shruthika
    Shruthika avatar
    3 posts
    Member since:
    Jan 2015

    Posted 23 Feb in reply to Dimo Link to this post

    I have property named "collapsible" but not "collapse" now. How do i see if a pane is collapsed or not
  5. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 29 Feb Link to this post

    Hi,

    As Dimo mentioned, the pane element should have a "collapsed" data property (see screenshot from our demo site). In case the "collapsed" property does not exist, then the pane is in its initial state and is expanded. You can also specify the initial state of the panes through the Splitter's options.

    Regards,
    Alexander Popov
    Telerik
     
    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