[Bug Report] Removing splitter panes in v2013.3.1119

2 posts, 0 answers
  1. Mark
    Mark avatar
    5 posts
    Member since:
    Sep 2013

    Posted 14 Jan 2014 Link to this post

    I believe there may be a bug in the way panes are removed from splitter IF there are more that one splitter on the page.  The following is the remove method from kendo.splitter.js in v2013.3.1119:

    remove: function(pane) {
        pane = $(pane);
        var that = this;
        if (pane.length) {
            pane.each(function(idx, element){
                that.options.panes.splice($(element).index(".k-pane"), 1);
            if (that.options.panes.length) {
        return that;
    If there is only one splitter on the page, $(element).index(".k-pane") will return the appropriate index of the pane.  If there are more than one splitter on the page, the ".k-pane" selector will return panes for ALL the splitters on the page (not just the splitter in question) and the element's index within that jquery object will NOT correspond to the index in the that.options.panes array.  I haven't tried it but I think that the following would eliminate the erroneous panes:

  2. Dimo
    Dimo avatar
    8485 posts

    Posted 15 Jan 2014 Link to this post

    Hello Mark,

    Indeed, the index was not calculated correctly. This issue is now fixed and changes will take effect in the service pack, which is scheduled to be released this week. I have updated your Telerik points. Thank you.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top