<
telerik:GridRatingColumn
HeaderText
=
"Completion Status"
DataField
=
"CompletionStatus"
UniqueName
=
"CompletionStatus"
AllowFiltering
=
"false"
ItemCount
=
"10"
Precision
=
"Exact"
ReadOnly
=
"true"
>
</
telerik:GridRatingColumn
>
In the ItemDataBound event's method, I do the following...
double
ratio = (totalCount - unapprovedCount) / totalCount;
rating.ItemCount = 10;
rating.Value = (
decimal
)Math.Round(ratio * 10, 1);
rating.ToolTip = Math.Round(ratio * 100, 0).ToString() +
"%"
;
I just want the tooltip to say 18% if the ratio is 2/11. It says 1.8.
Any ideas?