splitter.min(pane) not working

3 posts, 1 answers
  1. Dino
    Dino avatar
    26 posts
    Member since:
    May 2011

    Posted 08 Nov 2012 Link to this post

    Hello,

    I need to get the minimum size of a given pane in the splitter. I see the following behavior...

    When I call splitter.min(pane) it enters the following method in kendo.all.js:

    function panePropertyAccessor(propertyName, triggersResize) {
    return function(pane, value) {
    var paneConfig = $(pane).data(PANE);

    if (arguments.length == 1) {
    return paneConfig[propertyName];
    }

    paneConfig[propertyName] = value;

    if (triggersResize) {
    var splitter = this.element.data("kendoSplitter");
    splitter.trigger(RESIZE);
    }
    };
    }


    In this case, propertyName is 'min', however, in the paneConfig the property is called 'minSize', and therefore this returns undefined.
  2. Answer
    Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 09 Nov 2012 Link to this post

    Hello Dino,

    There was a problem with the Kendo UI Splitter's MVC wrapper, which has a MinSize property. This property should be serialized as min to the client initialization script, but was serialized as minSize instead, so it was not applied. This is fixed now and changes will take effect in the Q3 2012 release, due next week. I am not sure your problem is caused by the same bug, but generally, there is no other reference for minSize in the Splitter's current Javascript code.

    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. Dino
    Dino avatar
    26 posts
    Member since:
    May 2011

    Posted 09 Nov 2012 Link to this post

    Ok great! Ya that sounds like it would cause this issue. I look forward to the Q32012 release! Thanks!
Back to Top