RatingEventBuilder
Methods
Change(System.String)
Fires when the value of the Rating is changed through user interaction.
For more information see Change event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the change event.
Example
@(Html.Kendo().Rating()
.Name("rating")
.Events(e => e.Change("onChange"))
)
Change(System.Func)
Fires when the value of the Rating is changed through user interaction.
For more information see Change event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Rating()
.Name("rating")
.Events(e => e.Change(
@<text>
function(e) {
// event handling code
}
</text>
))
)
Select(System.String)
For more information see Select event.
Parameters
handler - System.String
Select(System.Func)
Fires when an item is selected through user interaction.
For more information see Select event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Rating()
.Name("rating")
.Events(e => e.Select(
@<text>
function(e) {
// event handling code
}
</text>
))
)