RichEditExtension.Open(String, RichEditDocumentInfo) Method
Activates a previously opened document.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
public static ActionResult Open(
string extensionName,
RichEditDocumentInfo documentInfo
)
Parameters
Name | Type | Description |
---|---|---|
extensionName | String | The RichEdit name. |
documentInfo | RichEditDocumentInfo | An object that contains information about the document to open. |
Returns
Type | Description |
---|---|
ActionResult | An object that represents the result of the operation. |
Remarks
Use this method to open a document from a list of already opened documents maintained by the DocumentManager.
Note that the Open 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 open documents by passing a document name from a controller to a partial view using the View Data collection and invoking the Open method directly in the partial view.