开发者

Telerik MVC Splitter maximum height

I am using the Telerik MVC splitter and I would like this to be displayed at 100% of the height of the container (i.e. have a height of 100%). Currently the panel is being displayed at a fixed height of 600px. I have tried experimenting with the .HtmlAttributes but this has not helped at all. Any ideas? Here is the div containing the splitter

<div>
<% Html.Telerik().Splitter().Name("MainPanelSet")
       .Orientation(Splitte开发者_如何学PythonrOrientation.Horizontal)
       .Panes(hPanes =>
           {
               hPanes.Add()
                   .Size("25%")
                   .MaxSize("50%")
                   .MinSize("5%")
                   .Scrollable(true)
                   .Resizable(true)
                   .Collapsible(true)
                   .Content(() =>
                   {%> 
                        <p>panel here 1</p>
                    <%});
               hPanes.Add()
                   .Size("50%")
                   .MaxSize("50%")
                   .MinSize("5%")
                   .Scrollable(true)
                   .Resizable(true)
                   .Content(() =>
                   {%> 
                    <p>panel here 2</p>
                    <%});
               hPanes.Add()
                   .Size("25%")
                   .MaxSize("25%")
                   .MinSize("5%")
                   .Scrollable(true)
                   .Resizable(true)
                   .Collapsible(true)
                   .Content(() =>
                   {%> 
                    <p>panel here 3</p>
                    <%});
           }).Render();
        %>


This example is taken from a vertical pane where the width is already set by the .Size

.HtmlAttributes(new { id = "horizontal-middle", style = "height: 84.5%;" })
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜