Hello,
I'm not sure if this is the intended results of RadRating or its just in my case, but I have created a Yes/No rating similar to the demo and the problem I encountered was when I set the RadRatingItem to Value="0", then on the initial page_load, the SelectedImageUrl is used as the default image vs ImageUrl. I'm using the RadRating in a grid and all the grid results produce the same results.
Here is the RadRating source:
The goal was to use 0 & 1 for the rateBinary.Values and convert to bool in the OnRate event.
Any suggestions are appreciated,
Thank you,
Ronnie
I'm not sure if this is the intended results of RadRating or its just in my case, but I have created a Yes/No rating similar to the demo and the problem I encountered was when I set the RadRatingItem to Value="0", then on the initial page_load, the SelectedImageUrl is used as the default image vs ImageUrl. I'm using the RadRating in a grid and all the grid results produce the same results.
Here is the RadRating source:
<
telerik:RadRating
ID
=
"ratingBinary"
runat
=
"server"
ItemHeight
=
"20px"
ItemWidth
=
"20px"
Orientation
=
"Horizontal"
SelectionMode
=
"Single"
AutoPostBack
=
"true"
OnRate
=
"ratingBinary_Rate"
>
<
Items
>
<
telerik:RadRatingItem
Value
=
"0"
HoveredImageUrl
=
"Assets/Collection/Images/Rating/Binary/downh.png"
HoveredSelectedImageUrl
=
"Assets/Collection/Images/Rating/Binary/downh.png"
SelectedImageUrl
=
"Assets/Collection/Images/Rating/Binary/downh.png"
ImageUrl
=
"Assets/Collection/Images/Rating/Binary/down.png"
ToolTip
=
"No"
/>
<
telerik:RadRatingItem
Value
=
"1"
HoveredImageUrl
=
"Assets/Collection/Images/Rating/Binary/uph.png"
HoveredSelectedImageUrl
=
"Assets/Collection/Images/Rating/Binary/uph.png"
SelectedImageUrl
=
"Assets/Collection/Images/Rating/Binary/uph.png"
ImageUrl
=
"Assets/Collection/Images/Rating/Binary/up.png"
ToolTip
=
"Yes"
/>
</
Items
>
</
telerik:RadRating
>
The goal was to use 0 & 1 for the rateBinary.Values and convert to bool in the OnRate event.
Any suggestions are appreciated,
Thank you,
Ronnie