Asp.net mvc kendo rating control shwoing 1 star by default even though value is zero

0 Answers 6 Views
Grid Rating
Sudheer
Top achievements
Rank 1
Sudheer asked on 21 May 2024, 12:41 PM

Asp.net mvc kendo rating control shwoing 1 star by default even though value is zero 

This code is integrated in kendo grid 

below is the code

columns.Bound(p => p.Rating).Title("Rating").Editable("returnFalse")
                                                 .ClientTemplate(Html.Kendo().Rating()                                                                                                       
                                                     .Name("llrating_#=SpreadsheetVersionDataId#")
                                                     .Label(false)
                                                     .Tooltip(true)                                                     
                                                     .HtmlAttributes(new { data_bind = "value:Rating" })
                                                     .Selection("continuous")                                                      
                                                     .ToClientTemplate().ToHtmlString()
                                                 );
Georgi
Telerik team
commented on 24 May 2024, 06:19 AM

Sudheer, by default the rating will display 1 star if any value that is equal or smaller than 1 is set. No stars represents no value. Thus, if you would like to have no stars, set the value to null instead of 0.

No answers yet. Maybe you can help?

Tags
Grid Rating
Asked by
Sudheer
Top achievements
Rank 1
Share this question
or