ProgressBarEventBuilder
Methods
Change(System.String)
Defines the handler of the Change client-side event. Fired when the value of the ProgressBar has changed. If the progress animation is enabled, the event will be fired after the animation has completed (does not applies to chunk ProgressBar).
For more information see Change event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Change event.
RETURNS
Returns the current instance of ProgressBarEventBuilder .
Example
@( Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(events => events.Change("onChange"))
)
Change(System.Func)
Defines the handler of the Change client-side event. Fired when the value of the ProgressBar has changed. If the progress animation is enabled, the event will be fired after the animation has completed (does not applies to chunk ProgressBar).
For more information see Change event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ProgressBarEventBuilder .
Example
@( Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(events => events.Change(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Complete(System.String)
Defines the handler of the Complete client-side event. Fired when the value of the ProgressBar reaches the maximum value.
For more information see Complete event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Complete event.
RETURNS
Returns the current instance of ProgressBarEventBuilder .
Example
@( Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(events => events.Complete("onComplete"))
)
Complete(System.Func)
Defines the handler of the Complete client-side event. Fired when the value of the ProgressBar reaches the maximum value.
For more information see Complete event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ProgressBarEventBuilder .
Example
@( Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(events => events.Complete(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)