RatingColumn tooltip not getting set

2 posts, 0 answers
  1. Jason Sheats
    Jason Sheats avatar
    6 posts
    Member since:
    Mar 2009

    Posted 27 Mar 2012 Link to this post




    <telerik:GridRatingColumn HeaderText="Completion Status" DataField="CompletionStatus" UniqueName="CompletionStatus" AllowFiltering="false" ItemCount="10" Precision="Exact" ReadOnly="true" >

    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?


  2. Andrey
    Andrey avatar
    836 posts

    Posted 30 Mar 2012 Link to this post


    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,
    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.
Back to Top