<div style="margin:0;padding:0;height:100%;width:100%;">
@{Html.EJ().Splitter("outer").Height("680")Width("100%").Orientation(Orientation.Horizontal).EnableAutoResize(true).PaneProperties(
p =>
{
p.Add().ContentTemplate(
@<div class="splitdiv">
@innerSplitter()
</div>);
p.Add().ContentTemplate(
@<div class="splitdiv">
Pane 3
</div>).PaneSize("80%");
}).Render();}
@helper innerSplitter()
{
/**/
@Html.EJ().Splitter("inner").EnableAutoResize(true).PaneProperties(p1 =>
{
p1.Add().ContentTemplate(
@<div class="splitdiv">
Pane 1
</div>).PaneSize("50%");
p1.Add().ContentTemplate(
@<div class="splitdiv">
Pane 2
</div>).PaneSize("50%");
}).Orientation(Orientation.Vertical)
}
</div>
<style type="text/css" class="cssStyles">
#inner {
border: 0 none;
}
#outterSpliter {
margin: 0 auto;
}
.splitdiv {
height: 100%;
width: 100%;
}
</style> |
function create(args){
var obj = $("#splitter").data("ejSplitter");
obj.refresh();
} |