RichEditExtension.New(String) Method

Creates a new empty document within the RichEdit.

Namespace: DevExpress.Web.Mvc

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


public static ActionResult New(
    string extensionName
Public Shared Function New(
    extensionName As String
) As ActionResult


Name Type Description
extensionName String

A string value that specifies the RichEdit name.


Type Description

A ActionResult object that represents the result of the operation.


Note that the New method uses the control's parameters stored as an additional parameter of the control's work session to restore all the controls settings and return a relevant partial view in a controller action. It is recommended to avoid using the DocumentManager.CloseAllDocuments method that clears all the session parameters, including control settings and close only specific documents using the documents names.

Alternatively, you can create documents by passing a document name from a controller to a partial view using the View Data collection and invoking the New method directly in the partial view.

See Also