@Html.EJ().Tab("Syncfusion_Control")
//..
.ClientSideEvents(eve => eve.ItemActive("itemActive"))
<script type="text/javascript">
function itemActive(args) {
//returns current active index.
if (args.activeIndex == 1) {
var obj = $("#GanttContainer").data("ejGantt");
if (obj) {
obj.setModel({ "sizeSettings": { "height": "450px","width": "100%" } });
}
}
}
</script> |
[_fileExplorer.cshtml]
@(Html.EJ().FileExplorer("fileExplorer").Path("~/FileBrowser/").AjaxAction(@Url.Content("~/Home/FileActionDefault"))
.Width("100%").IsResponsive(true).MinWidth("150px").EnableResize(true))
|
Hi,
Thanks for the sample and the solution.
Now it worked well and I will keep testing other Syncfusion controls.
Thanks a lot.