New to Telerik UI for ASP.NET Core? 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

EditorExportAsSettingsBuilder method.

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

Returns the current instance of EditorExportAsSettingsBuilder to allow method chaining.

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

Configures the proxy.

C#
public EditorExportAsSettingsBuilder Proxy(Action<ProxyBuilder> configurator)
Parameters:configuratorAction<ProxyBuilder>

The proxy configurator.

Returns:

EditorExportAsSettingsBuilder

Returns the current instance of EditorExportAsSettingsBuilder to allow method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.ExportAs(exportAs =&gt; exportAs
.Proxy(p =&gt; p.Url("/proxy"))
)
)

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

Returns the current instance of EditorExportAsSettingsBuilder to allow method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.ExportAs(exportAs =&gt; 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

Returns the current instance of EditorExportAsSettingsBuilder to allow method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.ExportAs(exportAs =&gt; 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

Returns the current instance of EditorExportAsSettingsBuilder to allow method chaining.

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