jQWidgets Forums

jQuery UI Widgets Forums ASP .NET MVC setting pannel size for jqxSplitter MVC tag helper

This topic contains 2 replies, has 2 voices, and was last updated by  admin 8 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • Admir Hodžić
    Participant

    When I try to use jqxSplitter MVC tag helper I do not see way to set panel size.
    If I try smething like this

    <jqx-splitter showSplitBar="true" width="100%" height="800"  orientation="horizontal"   >    
        <jqx-splitter-panel size="100" >
            
        </jqx-splitter-panel>
        <jqx-splitter-panel size="700" >
            
        </jqx-splitter-panel>
    </jqx-splitter>
    

    I do get splitter working but panels are always 50:50 size.


    Admir Hodžić
    Participant

    Sory for spamming.(answering my own question)

    I managed to do panel resizing in razor,
    but this is pretty ugly maybe you can considered adding properties to panel in next releases.

    This is how I can resize panels.

    
    @{ 
        object[] s = new object[2];
        s[0] = "{size: \'10%\' }";
        s[1] = "{size: \'90%\' }";
    }
    <jqx-splitter showSplitBar="true" width="100%" height="800"  orientation="horizontal" panels=@s.ToList() >
        <jqx-splitter-panel >
    
        </jqx-splitter-panel>
        <jqx-splitter-panel >
            
        </jqx-splitter-panel>
    </jqx-splitter>
    

    admin
    Keymaster

    Hi adopilot,

    The panel should have no properties as it does not have in the jqxSplitter, too. It should work and works the same way it does with jqxSplitter and the properties match jqxSplitter properties as we want to reuse 100% the API.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.