Slider - Step

1 Answer 142 Views
Slider
Vladislav
Top achievements
Rank 2
Iron
Iron
Vladislav asked on 11 Oct 2022, 01:09 PM

Hello.

How to set the step in the slider so that the steps work even with drag and drop. When you click on the button, the values increase by [step], but not when you drag and drop.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 13 Oct 2022, 11:22 AM

Hi Vladislav,

The slider has drag&drop option when the slider itself is used for changing the value. The step buttons are for moving one step at a time and I have to say that drag&drop for the buttons is not supported.

If other questions arise, feel free to get back to us. 

 

Regards,
Konstantin Dikov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Vladislav
Top achievements
Rank 2
Iron
Iron
commented on 13 Oct 2022, 01:00 PM | edited

Thanks for the reply, but...

Sorry, ok, I probably explained it wrong.

My problem is as follows. Drag and drop only works continuously, not in steps. In JQuery it is possible. Example: if min value = 0, max value = 100 and step = 10, even with drag and drop I can only set 0, 10, 20, 30 ... 100. But I can't set it in react.

Thanks.

Vladislav
Top achievements
Rank 2
Iron
Iron
commented on 14 Oct 2022, 08:29 AM

Ok, I solved it manually.
Konstantin Dikov
Telerik team
commented on 16 Oct 2022, 08:49 AM

Hi Vladislav,

I am glad to see that you have resolved the issue.

I am assuming that you have rounded the value within the onChange event to the step value:

Vladislav
Top achievements
Rank 2
Iron
Iron
commented on 17 Oct 2022, 07:23 AM

Hi Konstantin.

Yes, exactly like that :).

Tags
Slider
Asked by
Vladislav
Top achievements
Rank 2
Iron
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or