Set itemcount not working

2 posts, 0 answers
  1. Greg
    Greg avatar
    17 posts
    Member since:
    Oct 2010

    Posted 25 Jul 2011 Link to this post

    This is my first time trying out a radrating control.
    I add it to my form and set the itemcount to 5 as so:
     <telerik:RadRating ID="RadRating1" runat="server" ItemCount="5"></telerik:RadRating>

    No matter what I seem to try, I only ever see one star. What am I missing here?
  2. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 27 Jul 2011 Link to this post

    Hello Greg,

    I tried to reproduce the issue you have encountered, but to no avail. You can find my test project attached. Please compare it with your actual project and check if there are differences in the implementation.

    You can also verify if any of the listed scenarios, that can lead to such problem, are present:
    1. The ItemCount property of RadRating is specified in the code-behind as well. The new value will override the one set in the design-time.
    2. There are custom CSS styles, modifying the appearance of the RadRating, for example setting less width than needed.
    3. The RadRating is bound to a data source, which specifies different number of items than the ItemCount property.

    Please note that at the current state of affairs I am mostly guessing as to what your setup is and if you are still experiencing difficulties please prepare and send us a sample, runnable project that displays your issue so that we can examine it locally and provide a more to the point answer.

    Kind regards,
    Slav
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top