UploadEventBuilder
Methods
Select(System.Func)
Defines the inline handler of the Select client-side event
For more information see Select event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Select(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Select(System.String)
Triggered when a file is selected. Note: Canceling this event will prevent the selection from\n\t\t/// occurring.
For more information see Select event.
Parameters
onSelectHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Select("onSelect"))
)
Upload(System.Func)
Defines the inline handler of the Upload client-side event
For more information see Upload event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Upload(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Upload(System.String)
Defines the name of the JavaScript function that will handle the the Upload client-side event.
For more information see Upload event.
Parameters
onUploadHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Upload("onUpload"))
)
Success(System.Func)
Defines the inline handler of the Success client-side event.
For more information see Success event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Success(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Success(System.String)
Defines the name of the JavaScript function that will handle the the Success client-side event.
For more information see Success event.
Parameters
onSuccessHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Success("onSuccess"))
)
Error(System.Func)
Defines the inline handler of the Error client-side event.
For more information see Error event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Error(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Error(System.String)
Defines the name of the JavaScript function that will handle the the Error client-side event.
For more information see Error event.
Parameters
onErrorHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Error("onError"))
)
Pause(System.Func)
Defines the inline handler of the Pause client-side event.
For more information see Pause event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Pause(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Pause(System.String)
Defines the name of the JavaScript function that will handle the Pause client-side event.
For more information see Pause event.
Parameters
onPauseHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Pause("onPause"))
)
Resume(System.Func)
Defines the inline handler of the Resume client-side event.
For more information see Resume event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Resume(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Resume(System.String)
Defines the name of the JavaScript function that will handle the Resume client-side event.
For more information see Resume event.
Parameters
onResumeHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Resume("onResume"))
)
Complete(System.Func)
Defines the inline handler of the Complete client-side event.
For more information see Complete event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Complete(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Complete(System.String)
Defines the name of the JavaScript function that will handle the the Complete client-side event.
For more information see Complete event.
Parameters
onCompleteHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Complete("onComplete"))
)
Cancel(System.Func)
Defines the inline handler of the Cancel client-side event.
For more information see Cancel event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Cancel(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Cancel(System.String)
Defines the name of the JavaScript function that will handle the the Cancel client-side event.
For more information see Cancel event.
Parameters
onCancelHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Cancel("onCancel"))
)
Remove(System.Func)
Defines the inline handler of the Remove client-side event.
For more information see Remove event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Remove(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Remove(System.String)
Defines the name of the JavaScript function that will handle the the Remove client-side event.
For more information see Remove event.
Parameters
onRemoveHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Remove("onRemove"))
)
Progress(System.Func)
Defines the inline handler of the Progress client-side event.
For more information see Progress event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Progress(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Progress(System.String)
Defines the name of the JavaScript function that will handle the the Progress client-side event.
For more information see Progress event.
Parameters
onProgressHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Progress("onProgress"))
)
Clear(System.Func)
Defines the inline handler of the Clear client-side event.
For more information see Clear event.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Clear(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Clear(System.String)
Defines the name of the JavaScript function that will handle the the Clear client-side event.
For more information see Clear event.
Parameters
onClearHandlerName - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Upload()
.Name("Upload")
.Events(events => events.Clear("onClear"))
)