I want to override the user action and always set the Slider value to 0. However, it looks like I cannot always programmatically update the value in the OnChange handler. Sometimes the Slider keeps the value the user slided to.
Reproduction: https://blazorrepl.telerik.com/cyvYPaFl063537LA25.
I try to use your slider but when pressed (left/right) arrows the value is not moving correctly.
(value 1, min value -1, max value 7, step size 2). I press the right arrow and the value is moved to "2" but I expected that slider will be moved to "3". I would expect that the values will change according to the values displayed on the scale (similar to when dragging), not on values that are not visible.
Here is a repro: REPL.
See jQuery for comparison: https://dojo.telerik.com/ijoligUZ.
In case the Change event is used for updating the Value, the interactions of the Slider component will stop working. The issue stems from using the Value parameter to trigger the onchange.
https://blazorrepl.telerik.com/QGOycZFQ18ErQlzo17
The value does not change
The value should change. Change event should fire with the upcoming value and not the old one.
All
All
When setting slider value by clicking on a position within slider the ValueChanged event does not always fire. In those cases the slider looks as if set to the correct value but the connected Value is not updated.
Unfortunately I could not find a reproducible pattern for this to happen. Sometimes it occurs on the first or second click but sometimes it takes many clicks for the error to occur again.
The problem sometimes also occurs if setting the value not by clicking on a position but by dragging the slider. In both cases (clicking on position and sliding) the GUI is updated before the ValueChanged event is fired. The error does not seem to occur if using the left/right buttons for setting a value. In this case the ValueChanged event is fired first and then the GUI is updated.
This error renders the Slider Component useless for us because the user can never be sure whether or not the value has been set correctly.