Kendo.Mvc.UI.Fluent.EditorImportSettingsBuilder
Defines the fluent API for configuring the EditorImportSettings settings.
Methods
AllowedExtensions(System.String[])
Lists which file extensions are allowed to be uploaded. Recognizes entries of both .type and type values.
Parameters
value System.String[]
The value that configures the allowedextensions.
MaxFileSize(System.Nullable<System.Double>)
Defines the maximum file size that can be uploaded in bytes.
Parameters
value System.Nullable<System.Double>
The value that configures the maxFileSize.
Proxy(System.String,System.String)
Sets the action and controller for the import operation
Parameters
actionName System.String
Name of the action.
controllerName System.String
Name of the controller.
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Proxy("EditorImport", "Home");
)
%>
Proxy(System.Linq.Expressions.Expression<System.Action<T1>>)
Sets the action for the import operation
Parameters
controllerAction System.Linq.Expressions.Expression<System.Action<T1>>
The action.
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Proxy<HomeController>(controller => controller.Import())
)
%>
Error(System.Func<System.Object,System.Object>)
Defines the inline handler of the Error client-side event
Parameters
inlineCodeBlock System.Func<System.Object,System.Object>
The handler code wrapped in a text tag (Razor syntax).
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Error(@function(e){ console.log(e.files[0].name); })
)
Error(System.String)
Defines the name of the JavaScript function that will handle the Error client-side event.
Parameters
onErrorHandlerName System.String
The name of the JavaScript function that will handle the event.
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Error("onError")
)
Complete(System.Func<System.Object,System.Object>)
Defines the inline handler of the Complete client-side event
Parameters
inlineCodeBlock System.Func<System.Object,System.Object>
The handler code wrapped in a text tag (Razor syntax).
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Complete(@function(e){ console.log(e); })
)
Complete(System.String)
Defines the name of the JavaScript function that will handle the Complete client-side event.
Parameters
onCompleteHandlerName System.String
The name of the JavaScript function that will handle the event.
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Complete("onComplete")
)
Select(System.Func<System.Object,System.Object>)
Defines the inline handler of the Select client-side event
Parameters
inlineCodeBlock System.Func<System.Object,System.Object>
The handler code wrapped in a text tag (Razor syntax).
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Select(@function(e){ console.log(e); })
)
Select(System.String)
Defines the name of the JavaScript function that will handle the Select client-side event.
Parameters
onSelectHandlerName System.String
The name of the JavaScript function that will handle the event.
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Select("onSelect")
)
Success(System.Func<System.Object,System.Object>)
Defines the inline handler of the Success client-side event
Parameters
inlineCodeBlock System.Func<System.Object,System.Object>
The handler code wrapped in a text tag (Razor syntax).
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Success(@function(e){ console.log(e); })
)
Success(System.String)
Defines the name of the JavaScript function that will handle the Success client-side event.
Parameters
onSuccessHandlerName System.String
The name of the JavaScript function that will handle the event.
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Success("onSuccess")
)
Progress(System.Func<System.Object,System.Object>)
Defines the inline handler of the Progress client-side event
Parameters
inlineCodeBlock System.Func<System.Object,System.Object>
The handler code wrapped in a text tag (Razor syntax).
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Progress(@function(e){ console.log(e); })
)
Progress(System.String)
Defines the name of the JavaScript function that will handle the Progress client-side event.
Parameters
onProgressHandlerName System.String
The name of the JavaScript function that will handle the event.
Example (ASPX)
<%= Html.Kendo().Editor()
.Name("Editor")
.Import(import => import
.Progress("onProgress")
)