Class FileExplorerPropertiesBuilder
Inheritance
System.Object
FileExplorerPropertiesBuilder
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ.dll
Syntax
public class FileExplorerPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
FileExplorerPropertiesBuilder()
Declaration
public FileExplorerPropertiesBuilder()
FileExplorerPropertiesBuilder(FileExplorer)
Declaration
public FileExplorerPropertiesBuilder(FileExplorer fileExplorer)
Parameters
Methods
AjaxAction(String)
Sets the URL of server side ajax handling method that handles file operation like Read, Remove, Rename, Create, Upload, Download, Copy and Move in File Explorer.
Declaration
public FileExplorerPropertiesBuilder AjaxAction(string ajaxAxtion)
Parameters
Type |
Name |
Description |
System.String |
ajaxAxtion |
|
Returns
AjaxDataType(String)
Specifies the data type of server side ajax handling method.
Declaration
public FileExplorerPropertiesBuilder AjaxDataType(string ajaxDataType)
Parameters
Type |
Name |
Description |
System.String |
ajaxDataType |
|
Returns
AjaxSettings(Action<AjaxActionsBuilder>)
By using ajaxSettings property, you can customize the ajax configurations. Normally you can customize the following option in ajax handling data, url, type, async, contentType, dataType and success. For upload, download and getImage API, you can only customize url.
Declaration
public FileExplorerPropertiesBuilder AjaxSettings(Action<AjaxActionsBuilder> ajaxSettings)
Parameters
Returns
AllowDragAndDrop()
Enables or disables the drag and drop behavior in FileExplorer.
Declaration
public FileExplorerPropertiesBuilder AllowDragAndDrop()
Returns
AllowDragAndDrop(Boolean)
Enables or disables the drag and drop behavior in FileExplorer. A boolean variable allowDragAndDrop is passed as an argument.
Declaration
public FileExplorerPropertiesBuilder AllowDragAndDrop(bool allowDragAndDrop)
Parameters
Type |
Name |
Description |
System.Boolean |
allowDragAndDrop |
|
Returns
AllowKeyboardNavigation()
specifies the keyboard Navigation option for FileExplorer
Declaration
public FileExplorerPropertiesBuilder AllowKeyboardNavigation()
Returns
AllowKeyboardNavigation(Boolean)
Declaration
public FileExplorerPropertiesBuilder AllowKeyboardNavigation(bool allowKeyboardNavigation)
Parameters
Type |
Name |
Description |
System.Boolean |
allowKeyboardNavigation |
|
Returns
AllowMultiSelection()
Allows to select the multiple files
Declaration
public FileExplorerPropertiesBuilder AllowMultiSelection()
Returns
AllowMultiSelection(Boolean)
Declaration
public FileExplorerPropertiesBuilder AllowMultiSelection(bool allowMultiSelection)
Parameters
Type |
Name |
Description |
System.Boolean |
allowMultiSelection |
|
Returns
ClientSideEvents(Action<FileExplorerClientSideEventsBuilder>)
Declaration
public FileExplorerPropertiesBuilder ClientSideEvents(Action<FileExplorerClientSideEventsBuilder> clientSideEvents)
Parameters
Returns
Gets or sets an object that indicates whether to customize the ContextMenu items in FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder ContextMenuSettings(Action<FileExplorerContextMenuSettingsBuilder> items)
Parameters
Returns
CssClass(String)
Sets the root class for FileExplorer theme. This cssClass API allows to use custom skinning option for File Explorer control. By defining the root class by using this API, you have to include this root class in CSS.
Declaration
public FileExplorerPropertiesBuilder CssClass(string cssClass)
Parameters
Type |
Name |
Description |
System.String |
cssClass |
|
Returns
EnablePersistence()
Save the current model values in browser cookies.
Declaration
public FileExplorerPropertiesBuilder EnablePersistence()
Returns
EnablePersistence(Boolean)
Save the current model values in browser cookies.A boolean variable enablePersistence is passed as an argument.
Declaration
public FileExplorerPropertiesBuilder EnablePersistence(bool enablePersistence)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
EnableResize()
Enables or disables the resize support in FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder EnableResize()
Returns
EnableResize(Boolean)
Enables or disables the resize support in FileExplorer control.A boolean variable enableResize is passed as an argument.
Declaration
public FileExplorerPropertiesBuilder EnableResize(bool enableResize)
Parameters
Type |
Name |
Description |
System.Boolean |
enableResize |
|
Returns
EnableRTL()
Enables or disables the Right to Left alignment support in FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder EnableRTL()
Returns
EnableRTL(Boolean)
Enables or disables the Right to Left alignment support in FileExplorer control.A boolean variable enableRTL is passed as an argument.
Declaration
public FileExplorerPropertiesBuilder EnableRTL(bool enableRTL)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRTL |
|
Returns
EnableThumbnailCompress()
Compress the thumbnail image size
Declaration
public FileExplorerPropertiesBuilder EnableThumbnailCompress()
Returns
EnableThumbnailCompress(Boolean)
Declaration
public FileExplorerPropertiesBuilder EnableThumbnailCompress(bool enableThumbnailCompress)
Parameters
Type |
Name |
Description |
System.Boolean |
enableThumbnailCompress |
|
Returns
FileTypes(String)
Allows specified type of files only to display in FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder FileTypes(string fileTypes)
Parameters
Type |
Name |
Description |
System.String |
fileTypes |
|
Returns
FilterSettings(Action<FileExplorerFilterSettingsBuilder>)
By using filterSettings property, you can customize the search functionality of the search bar in FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder FilterSettings(Action<FileExplorerFilterSettingsBuilder> filterSettings)
Parameters
Returns
GridSettings(Action<FileExplorerGridSettingsBuilder>)
By using the gridSettings property, you can customize the grid behavior in the FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder GridSettings(Action<FileExplorerGridSettingsBuilder> gridSettings)
Parameters
Returns
Height(String)
Specifies the height of FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder Height(string height)
Parameters
Type |
Name |
Description |
System.String |
height |
|
Returns
IsResponsive()
Enables or disables the responsive support for FileExplorer control during the window resizing time.
Declaration
public FileExplorerPropertiesBuilder IsResponsive()
Returns
IsResponsive(Boolean)
Enables or disables the responsive support for FileExplorer control during the window resizing time.A boolean variable isResponsive is passed as an argument.
Declaration
public FileExplorerPropertiesBuilder IsResponsive(bool isResponsive)
Parameters
Type |
Name |
Description |
System.Boolean |
isResponsive |
|
Returns
Layout(LayoutType)
Sets the file view type. There are two view types available, such as grid, tile.
Declaration
public FileExplorerPropertiesBuilder Layout(LayoutType layout)
Parameters
Returns
Locale(String)
Sets the culture in FileExplorer.
Declaration
public FileExplorerPropertiesBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
MaxHeight(String)
Specifies the maximum height of the FileExplorer
Declaration
public FileExplorerPropertiesBuilder MaxHeight(string maxHeight)
Parameters
Type |
Name |
Description |
System.String |
maxHeight |
|
Returns
MaxWidth(String)
Specifies the maximum width of the FileExplorer
Declaration
public FileExplorerPropertiesBuilder MaxWidth(string maxWidth)
Parameters
Type |
Name |
Description |
System.String |
maxWidth |
|
Returns
MinHeight(String)
Specifies the minimum height of the FileExplorer
Declaration
public FileExplorerPropertiesBuilder MinHeight(string minHeight)
Parameters
Type |
Name |
Description |
System.String |
minHeight |
|
Returns
MinWidth(String)
Specifies the minimum width of the FileExplorer
Declaration
public FileExplorerPropertiesBuilder MinWidth(string minWidth)
Parameters
Type |
Name |
Description |
System.String |
minWidth |
|
Returns
Path(String)
The property path denotes the filesystem path that are to be explored. The path for the filesystem can be physical path or relative path, but it has to be relevant to where the Web API is hosted.
Declaration
public FileExplorerPropertiesBuilder Path(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Render()
Renders the FileExplorer instance.
Declaration
RootFolderName(String)
Specifies the alias name of root folder for FileExplorer control
Declaration
public FileExplorerPropertiesBuilder RootFolderName(string rootFolderName)
Parameters
Type |
Name |
Description |
System.String |
rootFolderName |
|
Returns
SelectedFolder(String)
Specifies the selected folder in FileExplorer
Declaration
public FileExplorerPropertiesBuilder SelectedFolder(string selectedFolder)
Parameters
Type |
Name |
Description |
System.String |
selectedFolder |
|
Returns
SelectedItems(ArrayList)
Specifies the selected items of the FileExplorer
Declaration
public FileExplorerPropertiesBuilder SelectedItems(ArrayList selectedItems)
Parameters
Type |
Name |
Description |
System.Collections.ArrayList |
selectedItems |
|
Returns
ShowCheckbox()
Specifies the state of checkbox
Declaration
public FileExplorerPropertiesBuilder ShowCheckbox()
Returns
ShowCheckbox(Boolean)
Declaration
public FileExplorerPropertiesBuilder ShowCheckbox(bool showCheckbox)
Parameters
Type |
Name |
Description |
System.Boolean |
showCheckbox |
|
Returns
Enables or disables the context menu option in FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder ShowContextMenu()
Returns
Enables or disables the context menu option in FileExplorer control.A boolean variable showContextMenu is passed as an argument.
Declaration
public FileExplorerPropertiesBuilder ShowContextMenu(bool showContextMenu)
Parameters
Type |
Name |
Description |
System.Boolean |
showContextMenu |
|
Returns
Enables or disables the footer in FileExplorer control. The footer element displays the details of the current selected files and folders. And also the footer having the switcher to change the layout view.
Declaration
public FileExplorerPropertiesBuilder ShowFooter()
Returns
Enables or disables the footer in FileExplorer control. The footer element displays the details of the current selected files and folders. And also the footer having the switcher to change the layout view.A boolean variable showFooter is passed as an argument.
Declaration
public FileExplorerPropertiesBuilder ShowFooter(bool showFooter)
Parameters
Type |
Name |
Description |
System.Boolean |
showFooter |
|
Returns
ShowNavigationPane()
Enables or disables the navigation pane in FileExplorer control. The navigation pane contains a tree view element that displays all the folders from the filesystem in a hierarchical manner. This is useful to a quick navigation of any folder in the filesystem.
Declaration
public FileExplorerPropertiesBuilder ShowNavigationPane()
Returns
ShowNavigationPane(Boolean)
Enables or disables the navigation pane in FileExplorer control. The navigation pane contains a tree view element that displays all the folders from the filesystem in a hierarchical manner. This is useful to a quick navigation of any folder in the filesystem.A boolean variable showNavigationPane is passed as an argument.
Declaration
public FileExplorerPropertiesBuilder ShowNavigationPane(bool showNavigationPane)
Parameters
Type |
Name |
Description |
System.Boolean |
showNavigationPane |
|
Returns
ShowRoundedCorner()
specifies the rounded corner for FileExplorer
Declaration
public FileExplorerPropertiesBuilder ShowRoundedCorner()
Returns
ShowRoundedCorner(Boolean)
Declaration
public FileExplorerPropertiesBuilder ShowRoundedCorner(bool showRoundedCorner)
Parameters
Type |
Name |
Description |
System.Boolean |
showRoundedCorner |
|
Returns
ShowThumbnail()
Shows the thumbnail view of the FileExplorer
Declaration
public FileExplorerPropertiesBuilder ShowThumbnail()
Returns
ShowThumbnail(Boolean)
Declaration
public FileExplorerPropertiesBuilder ShowThumbnail(bool showThumbnail)
Parameters
Type |
Name |
Description |
System.Boolean |
showThumbnail |
|
Returns
Shows or disables the toolbar in FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder ShowToolbar()
Returns
Shows or disables the toolbar in FileExplorer control.A boolean variable showToolbar is passed as an argument.
Declaration
public FileExplorerPropertiesBuilder ShowToolbar(bool showToolbar)
Parameters
Type |
Name |
Description |
System.Boolean |
showToolbar |
|
Returns
ShowTreeview()
Shows the treeview in FileExplorer
Declaration
[Obsolete("ShowTreeview property has deprecated. Use ShowNavigationPane instead of ShowTreeview")]
public FileExplorerPropertiesBuilder ShowTreeview()
Returns
ShowTreeview(Boolean)
Declaration
[Obsolete("ShowTreeview property has deprecated.Use ShowNavigationPane instead of ShowTreeView")]
public FileExplorerPropertiesBuilder ShowTreeview(bool showTreeview)
Parameters
Type |
Name |
Description |
System.Boolean |
showTreeview |
|
Returns
ToHtmlString()
Represents an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
The tools property is used to configure and group required toolbar items in FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder Tools(Action<FileExplorerToolsBuilder> tools)
Parameters
Returns
The toolsList property is used to arrange the toolbar items in the FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder ToolsList(List<string> toolsList)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.String> |
toolsList |
|
Returns
UploadBoxSettings(Action<FileExplorerUploadBoxSettingsBuilder>)
Specifies the uploadboxsettings of the FileExplorer
Declaration
[Obsolete("UploadBoxSettings property has been deprecated. Use UploadSettings instead of UploadBoxSettings")]
public FileExplorerPropertiesBuilder UploadBoxSettings(Action<FileExplorerUploadBoxSettingsBuilder> uploadBoxSettings)
Parameters
Returns
UploadSettings(Action<FileExplorerUploadBoxSettingsBuilder>)
Gets or sets an object that indicates whether to customize the upload behavior in the FileExplorer.
Declaration
public FileExplorerPropertiesBuilder UploadSettings(Action<FileExplorerUploadBoxSettingsBuilder> uploadSettings)
Parameters
Returns
VirtualItemCount(Int32)
Specifies this is 0, turn off the virtual scrolling. Else need to virtual the item based on count
Declaration
public FileExplorerPropertiesBuilder VirtualItemCount(int virtualItemCount)
Parameters
Type |
Name |
Description |
System.Int32 |
virtualItemCount |
|
Returns
Width(String)
Specifies the width of FileExplorer control.
Declaration
public FileExplorerPropertiesBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns
Implements
System.Web.IHtmlString