@{List<String> files = new List<string>() { "Open", "Download", "|" , "Upload" , "|", "Delete", "Rename", "|", "Cut", "Copy", "Paste", "|",
"OpenFolderLocation", "Getinfo" };
@(Html.EJ().FileExplorer("fileExplorer1")
.Path("~/content/images/FileExplorer/")
.AjaxAction(@Url.Content("FileActionDefault"))
.FileTypes("*.pdf")
.ClientSideEvents(evt => evt.LayoutChange("onLayoutChange").Select("onSelect").Unselect("onUnselect").BeforeOpen("onBeforeOpen"))
.AllowMultiSelection(false)
.ContextMenuSettings(
settings1 => settings1.Items(
item => item.Files(files)
))
.IsResponsive(true)
.ShowToolbar(false)
// under gridSettings you can customize the grid view functionalities
.GridSettings(settings =>
// disables the sorting functionality in grid view
settings.AllowSorting(true)
// it displays 3 columns only, like this you can display your desired columns at here
.Column(column =>
{
column.Add()
.Field("name")
.HeaderText("Name")
.Width("150");
column.Add()
.Field("dateModified")
.HeaderText("Date Modified")
.Width("150");
column.Add()
.Field("size")
.HeaderText("Size")
.Width("90")
.TextAlign(TextAlign.Right)
.HeaderTextAlign(TextAlign.Left);
}
)
)
)
}
|