How would I do "Star Ratings"

4 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 29 Oct 2014 Link to this post

    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)
  2. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 03 Nov 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 03 Nov 2014 in reply to Stef Link to this post

    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?
  5. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 05 Nov 2014 Link to this post

    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.

     
Back to Top