New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI ProgressBar for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the ProgressBarEventBuilder class.

C#
public ProgressBarEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The ProgressBar event handlers.

Example:
C#
@( Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(events =&gt; events.Change("onChange"))
)

Methods

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).

C#
public ProgressBarEventBuilder Change(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ProgressBarEventBuilder

Returns the current instance of ProgressBarEventBuilder .

Example:
C#
@( Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(events =&gt; events.Change(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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).

C#
public ProgressBarEventBuilder Change(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Change event.

Returns:

ProgressBarEventBuilder

Returns the current instance of ProgressBarEventBuilder .

Example:
C#
@( Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(events =&gt; events.Change("onChange"))
)

Defines the handler of the Complete client-side event. Fired when the value of the ProgressBar reaches the maximum value.

C#
public ProgressBarEventBuilder Complete(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ProgressBarEventBuilder

Returns the current instance of ProgressBarEventBuilder .

Example:
C#
@( Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(events =&gt; events.Complete(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

Defines the handler of the Complete client-side event. Fired when the value of the ProgressBar reaches the maximum value.

C#
public ProgressBarEventBuilder Complete(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Complete event.

Returns:

ProgressBarEventBuilder

Returns the current instance of ProgressBarEventBuilder .

Example:
C#
@( Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(events =&gt; events.Complete("onComplete"))
)