This is a migrated thread and some comments may be shown as answers.

RatingColumn tooltip not getting set

1 Answer 39 Views
Rating
This is a migrated thread and some comments may be shown as answers.
Jason Sheats
Top achievements
Rank 1
Jason Sheats asked on 27 Mar 2012, 05:39 PM

 

 

 

<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?

 

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 30 Mar 2012, 11:32 AM
Hello,

I created a sample project to test your case, but it is working as expected on my side.

Give the project a try and check whether it is working on your end.

Kind regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Rating
Asked by
Jason Sheats
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or