Back to Devexpress

RichEditSettings.WorkDirectory Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-richeditsettings-713e01e1.md

latest1.4 KB
Original Source

RichEditSettings.WorkDirectory Property

Specifies the work directory.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public string WorkDirectory { get; set; }
vb
Public Property WorkDirectory As String

Property Value

TypeDescription
String

The work directory.

|

Remarks

Specify the WorkDirectory property to enable the Open and Save As UI commands. Users cannot access the file system outside the specified directory.

cshtml
@Html.DevExpress().RichEdit(settings => {
    settings.Name = "RichEdit";
    settings.CallbackRouteValues = new { Controller = "DocumentManagement", Action = "LoadAndSavePartial" };
    settings.WorkDirectory = "~/App_Data/Documents";
}).GetHtml()

See Also

RichEditSettings Class

RichEditSettings Members

DevExpress.Web.Mvc Namespace