UploadEventBuilder
Defines the fluent API for configuring the Kendo UI Upload for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class UploadEventBuilder : EventBuilder
Inheritance: objectEventBuilderUploadEventBuilder
Inherited Members
Constructors
Initializes a new instance of the UploadEventBuilder class.
public UploadEventBuilder(IDictionary<string, object> events)
The Upload event handlers.
Methods
Defines the handler of the Cancel client-side event. Fires when the upload was cancelled while in progress.
public UploadEventBuilder Cancel(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Cancel client-side event. Fires when the upload was cancelled while in progress.
public UploadEventBuilder Cancel(string handler)
The name of the JavaScript function that will handle the Cancel event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Clear client-side event. Fires when the files are cleared by clicking on the Clear button.
public UploadEventBuilder Clear(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Clear client-side event. Fires when the files are cleared by clicking on the Clear button.
public UploadEventBuilder Clear(string handler)
The name of the JavaScript function that will handle the Clear event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Complete client-side event. Fires when all active uploads complete—either successfully or with errors.
public UploadEventBuilder Complete(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Complete client-side event. Fires when all active uploads complete—either successfully or with errors.
public UploadEventBuilder Complete(string handler)
The name of the JavaScript function that will handle the Complete event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Error client-side event. Fires when an upload or remove operation fails.
public UploadEventBuilder Error(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Error client-side event. Fires when an upload or remove operation fails.
public UploadEventBuilder Error(string handler)
The name of the JavaScript function that will handle the Error event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Pause client-side event. Fires when the files are cleared by clicking the Pause button. The button is visible if chunksize is set.
public UploadEventBuilder Pause(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Pause client-side event. Fires when the files are cleared by clicking the Pause button. The button is visible if chunksize is set.
public UploadEventBuilder Pause(string handler)
The name of the JavaScript function that will handle the Pause event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Progress client-side event. Fires when the data about the progress of the upload is available.
public UploadEventBuilder Progress(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Progress client-side event. Fires when the data about the progress of the upload is available.
public UploadEventBuilder Progress(string handler)
The name of the JavaScript function that will handle the Progress event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Remove client-side event. Fires when an uploaded file is about to be removed. If the event is canceled, the remove operation is prevented.
public UploadEventBuilder Remove(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Remove client-side event. Fires when an uploaded file is about to be removed. If the event is canceled, the remove operation is prevented.
public UploadEventBuilder Remove(string handler)
The name of the JavaScript function that will handle the Remove event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Resume client-side event. Fires when the files are resumed through clicking the Resume button. The button is visible if chunksize is set and the file upload is paused.
public UploadEventBuilder Resume(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Resume client-side event. Fires when the files are resumed through clicking the Resume button. The button is visible if chunksize is set and the file upload is paused.
public UploadEventBuilder Resume(string handler)
The name of the JavaScript function that will handle the Resume event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Select client-side event. Fires when a file is selected.
public UploadEventBuilder Select(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Select client-side event. Fires when a file is selected.
public UploadEventBuilder Select(string handler)
The name of the JavaScript function that will handle the Select event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Success client-side event. Fires when an upload or remove operation is completed successfully.
public UploadEventBuilder Success(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Success client-side event. Fires when an upload or remove operation is completed successfully.
public UploadEventBuilder Success(string handler)
The name of the JavaScript function that will handle the Success event.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Upload client-side event. Fires when one or more files are about to be uploaded. The canceling of the event prevents the upload.
public UploadEventBuilder Upload(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of UploadEventBuilder .
Defines the handler of the Upload client-side event. Fires when one or more files are about to be uploaded. The canceling of the event prevents the upload.
public UploadEventBuilder Upload(string handler)
The name of the JavaScript function that will handle the Upload event.
Returns:Returns the current instance of UploadEventBuilder .