This control Rating no update always, when the property is chance in the viewmodel, no always this control updated, somebody why happed this?
1 Answer, 1 is accepted
0
Antoan
Telerik team
answered on 01 Nov 2022, 10:31 AM
Hello Sergio,
I have tried the following scenario to try and reproduce this case. I created a property of type double in the ViewModel which value would change from a slider and update the Value of the Rating through the same binding. However I do not seem to reproduce the issue.
publicclassViewModel : NotifyPropertyChangedBase
{
privatedouble ratingValue;
publicdouble RatingValue
{
get => this.ratingValue;
set => this.UpdateValue(refthis.ratingValue, value);
}
}
Result:
Make sure that you have set the binding mode to two way, and implement PropertyChanged for the propery bound to the Rating.Value.
Give the suggestion a try and let me know if it works on your side. If the issue still persists, send me the exact setup you have, so I can test on my side.
Regards,
Antoan
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.