RichEditExtension.GetCallbackResult(String, Action<RichEditCustomDocumentProcessor>) Method

Returns the specified result back to the client side after processing a callback within an Action specified by the RichEditSettings.CallbackRouteValues property.

Namespace: DevExpress.Web.Mvc

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


public static ActionResult GetCallbackResult(
    string extensionName,
    Action<RichEditCustomDocumentProcessor> method
Public Shared Function GetCallbackResult(
    extensionName As String,
    method As Action(Of RichEditCustomDocumentProcessor)
) As ActionResult


Name Type Description
extensionName String

A string value specifying the name of the processed RichEdit extension.

method Action<RichEditCustomDocumentProcessor>

A delegate method of the RichEditCustomDocumentProcessor type.


Type Description

A ActionResult object that is the result of an action method.


Use this method in an Action specified by the RichEditSettings.CallbackRouteValues property to return the result of callback processing back to the client.

@Html.DevExpress().RichEdit(settings => {
    settings.Name = "RichEditNameHere";
    settings.CallbackRouteValues = new { Controller = ..., Action = "ActionMethodThatHandlesRichEditCallbacks" }; 
public ActionResult ActionMethodThatHandlesRichEditCallbacks() {
    return RichEditExtension.GetCallbackResult("RichEditNameHere", p => {
        p.Saving(e => {
            byte[] docBytes = RichEditExtension.SaveCopy("RichEditNameHere", DocumentFormat.Rtf);
            //saving "docBytes" to db
            e.Handled = true;
See Also