FileManagerSettingsContextMenu.Enabled Property
Gets or sets a value that indicates whether a context menu is enabled.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to Enabled |
---|---|---|
ASP.NET MVC Extensions | FileManagerSettings |
|
ASP.NET Web Forms Controls | ASPxFileManager |
|
Remarks
Set the Enabled property to true
to enable the context menu. Use the FileManagerSettingsContextMenu.Items property to customize the context menu items. If the item collection is empty, the context menu displays default items.
Use the ASPxFileManager.StylesContextMenu property to customize the context menu appearance.
Concept
Example
Web Forms (in markup):
<dx:ASPxFileManager ID="FileManager" ClientInstanceName="FileManager" runat="server" >
<SettingsContextMenu Enabled="false">
<Items>
...
</Items>
</SettingsContextMenu>
...
</dx:ASPxFileManager>
Web Forms (in code):
ASPxFileManager fm = new ASPxFileManager();
FileManager.SettingsContextMenu.Enabled = false;
...
MVC:
@Html.DevExpress().FileManager( settings => {
settings.Name = "fileManager";
settings.SettingsContextMenu.Enabled = false;
...
}).BindToFolder(Model).GetHtml()
Online Demo
See Also