Html.EJ().Splitter("outer").EnableAutoResize(true) .PaneProperties( p => { p.Add().ContentTemplate( @: @AccountNavigatorAndAccountSelection() ).PaneSize("25%"); p.Add().ContentTemplate( @: @PivotAndCashflowGridAndIHBGrid() ); } ) .Render();
@helper AccountNavigatorAndAccountSelection() { @Html.EJ().Splitter("AccountNavigatorAndAccountSelection").Orientation(Orientation.Vertical).EnableAutoResize(true).PaneProperties(p1 => { p1.Add().ContentTemplate( @: @AccountNavigator() ); p1.Add().ContentTemplate( @: @AccountSelection() ); }) }@helper AccountSelection() { using (Html.CoPanel(string.Format("{0} {1}", FinLang.Account, ResLang.Selection), PanelType.Primary, cssClass: "account-selection")) { Html.RenderPartial("_AccountSelectionPartial"); } }@(Html.EJ().Grid<AccountDto>(Html.id("AccountGrid")) .CssClass("account-grid") .ToolbarSettings(toolbar => toolbar.ShowToolbar(false)) .EditSettings(x => x.AllowDeleting(true)) .SelectionType(SelectionType.Multiple) .AllowFiltering() .FilterSettings(x => x.FilterType(FilterType.Excel)) .AllowResizing() .AllowScrolling() .Locale(this.Culture) .ApplyDescriptor(new AccountDtoDescriptor(), true, false, new Column() { Field = TypeHelper.GetPropertyPath<AccountDto>(x => x.CounterpartyType), Template = "#" + Html.id("CounterpartyTypeTemplate"), TextAlign = TextAlign.Center}) )
|
@helper AccountNavigatorAndAccountSelection()
{
@Html.EJ().Splitter("AccountNavigatorAndAccountSelection").Orientation(Orientation.Vertical).EnableAutoResize(true).ClientSideEvents(eve =>
{
eve.Resize("resize");
eve.ExpandCollapse("resize");
})
.PaneProperties(p1 =>
{
p1.Add().ContentTemplate(
@: @AccountNavigator()
);
p1.Add().ContentTemplate(
@: @AccountSelection()
);
})
}
<script type="text/javascript">
function resize() {
var gridObj = $(".e-grid").ejGrid("instance");
gridObj.windowonresize();
}
</script> |