Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144327 | May 1,2019 06:02 AM UTC | May 2,2019 08:54 AM UTC | ASP.NET MVC - EJ 2 | 2 |
![]() |
Tags: Splitter |
<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();
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.