Below is the code used in the view.
@{Html.EJ().Dialog("modelDialog").Title("FileExplorer").IsResponsive(true).Containment(".control").ContentTemplate(@<div>
@(Html.EJ().FileExplorer("fileExplorer")
.Path("~/resources/")
.AjaxAction(@Url.Content("FileActionDefault"))
.ToolsList(toolsList)
.AjaxAction("/FileExplorer/FileActionDefault")
.Layout(LayoutType.LargeIcons)
.Tools(tool =>
tool.CustomTool(custom =>
custom.Name("Gebruiken")
.Tooltip("Gebruiken")
.Css("e-fileExplorer-toolbar-icon Help")
.Action("dialogOpen").Add()
))
.AllowMultiSelection(false)
.Layout(LayoutType.LargeIcons)
.Width("100%")
)
</div>).EnableModal(true).EnableResize(false).ShowOnInit(false).Width(900).ClientSideEvents(evt => evt.Open("adjustSize").Resize("adjustSize").Close("onDialogClose")).IsResponsive(true).Render();}
<script type="text/javascript">
function adjustSize(args) {
$("#fileExplorer").ejFileExplorer("adjustSize");
}
</script> |