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

Defines the fluent API for configuring the ExportAs settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class EditorExportAsSettingsBuilder

Inheritance: objectEditorExportAsSettingsBuilder

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

Constructors

C#
public EditorExportAsSettingsBuilder(EditorExportAsSettings settings)
Parameters:settingsEditorExportAsSettings

Methods

Sets the name of the file in which the content will be exported.

C#
public EditorExportAsSettingsBuilder FileName(string fileName)
Parameters:fileNamestring

The name of the exported file.

Returns:

EditorExportAsSettingsBuilder

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.ExportAs(exportAs => exportAs.FileName("exportedFileName"))
)

Sets the action and controller for the export operation

C#
public EditorExportAsSettingsBuilder Proxy(string actionName, string controllerName)
Parameters:actionNamestring

Name of the action.

controllerNamestring

Name of the controller.

Returns:

EditorExportAsSettingsBuilder

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.ExportAs(exportAs => exportAs
.Proxy("EditorExport", "Home");
)
)

Sets the route name for the export operation

C#
public EditorExportAsSettingsBuilder Proxy(string routeName)
Parameters:routeNamestring

Name of the route.

Returns:

EditorExportAsSettingsBuilder

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.ExportAs(exportAs => exportAs
.Proxy("Default");
)
)

Sets the action for the export operation

C#
public EditorExportAsSettingsBuilder Proxy<TController>(Expression<Action<TController>> controllerAction) where TController : Controller
Parameters:controllerActionExpression<Action<TController>>

The action.

Returns:

EditorExportAsSettingsBuilder

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.ExportAs(exportAs =&gt; exportAs
.Proxy&lt;HomeController&gt;(controller =&gt; controller.Export())
)
)