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

Set itemcount not working

1 Answer 53 Views
Rating
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 25 Jul 2011, 11:44 PM
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?

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 27 Jul 2011, 02:38 PM
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.

Tags
Rating
Asked by
Greg
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or