I have a rating control in a ListView, used for display only. ViewState is disabled. When the ListView is databound, the rating control doesn't update to the new values. This doesn't appear to be a client cache issue as the generated HTML is still at the old values as well. you can see in the attached tooltip the value is correct, but the display is wrong.
Here is the code in the ListView ItemTemplate:
You can see this at *removed* (please don't pass around this link as the site is still in development ;) ). If you change the sort order, the rating controls will not reflect the new values, however clicking a paging link which changes the URL will update the rating control.
Here is the code in the ListView ItemTemplate:
<
telerik:RadRating
runat
=
"server"
ID
=
"rating"
Value='<%# Eval("Score") %>' ReadOnly="true" Skin="Default" Precision="Exact" EnableToolTips="false"/>
<
telerik:RadToolTip
runat
=
"server"
TargetControlID
=
"rating"
Text='<%# Eval("Score","{0:#.##} / 5.0 - ") + Eval("votes","{0:n0} votes") %>' Skin="Sunset" />
You can see this at *removed* (please don't pass around this link as the site is still in development ;) ). If you change the sort order, the rating controls will not reflect the new values, however clicking a paging link which changes the URL will update the rating control.