New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the EditorDeserializationSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class EditorDeserializationSettingsBuilder

Inheritance: objectEditorDeserializationSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public EditorDeserializationSettingsBuilder(EditorDeserializationSettings settings)
Parameters:settingsEditorDeserializationSettings

Methods

Callback that allows custom deserialization to be plugged in. The method accepts string as the only parameter and is expected to return the modified content as string as well.

C#
public EditorDeserializationSettingsBuilder Custom(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

EditorDeserializationSettingsBuilder

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.Deserialization(d =&gt; d.Custom(@&lt;text&gt;
function(html) {
return html.replace(/(#)/, ",");
}
&lt;/text&gt;)
)
)

Callback that allows custom deserialization to be plugged in. The method accepts string as the only parameter and is expected to return the modified content as string as well.

C#
public EditorDeserializationSettingsBuilder Custom(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

EditorDeserializationSettingsBuilder

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.Deserialization(d =&gt; d.Custom("htmlDeserialization"))
)
&lt;script&gt;
function htmlDeserialization(html) {
return html.replace(/(&lt;\/?)b(\s?)/, "$1strong$2");
}
&lt;/script&gt;