[CSHTML]
@{
ViewBag.Title = "Tab";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Tab Default:</h2>
<br/>
<div id = "ControlRegion">
<div style="width: 500px">
@{Html.EJ().Tab("defaultTabs").ClientSideEvents(evt => evt.ItemActive("currentTab")).ShowCloseButton(false).EnablePersistence(false).HeaderPosition(HeaderPosition.Top).Items(data =>
{
data.Add().ID("steelman").Text("Tab 1").ContentTemplate(@<div>
</div>);
data.Add().ID("woldwar").Text("Tab 2").ContentTemplate(@<div>
@Html.EJ().FileExplorer("fileExplorer").Path("http://js.syncfusion.com/demos/ejServices/Content/FileBrowser/").AjaxAction(@Url.Content("http://js.syncfusion.com/demos/ejServices/api/FileExplorer/FileOperations")).IsResponsive(true).Width("100%").MinWidth("150px").Layout(LayoutType.Grid).EnableResize(true).Height("600px")
</div>);
}).Render();}
</div>
</div>
[script]
<script>
function currentTab() {
var fileExplorerObj = $("#fileExplorer").data("ejFileExplorer");
fileExplorerObj.adjustSize();
}
</script> |