I need to be able to scale a value that represents a rating before the RepositoryItemRatingControl shows it. For obscure reasons we're storing our ratings as an integer ranging from 0 to 50. I need to scale the rating down by a factor of 10, so that it matches 0 to 5 stars.
I have attached an example of how I thought it should work, but I can't get it to work. The Format EditValue is never called.
How can I scale the values before displaying them?
Thanks.
Hi,
I see that currently, there is no way to determine the minimum and maximum values. I will pass this behavior to our R&D team for investigation. We will update this thread once we have results.
In the meantime, you can accomplish your task by creating an unbound Integer column and populating it with the necessary values manually in the GridView.CustomUnboundColumnData event. Then, assign RepositoryItemRatingControl to this column and hide the original one.