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

How would I do "Star Ratings"

3 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 29 Oct 2014, 03:11 PM
My data has a decimal 1-5 rating column...what's the best way to go about representing that as stars?  Like not just showing 3 stars, but 3 yellow and 2 grey (know what I mean, always 5)

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 03 Nov 2014, 05:06 PM
Hi Steve,

We can suggest you to use a separate image for each option from 1 to 5 stars and a PictureBox ite.
Then set the PictureBox.Value to an expression, where the running value of the expression would be the path to the corresponding image file or its bytes representation. The expression can be based on a field or other user function.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 03 Nov 2014, 05:12 PM
I'm actually in the process of doing this right now...the images are all embedded resources in the reporting DLL...I'm not sure how to reference, can't seem to find a help article on it.

Are there helpers or anything?
0
Stef
Telerik team
answered on 05 Nov 2014, 04:54 PM
Hi Steve,

One approach is to use an item and set the images as background via conditional formatting. This will allow you to have them as resources.

Also an option is to use a user function to access the images stored as resources of the report or elsewhere.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Stef
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or