Hi Ferenc,
To achieve your requirement, we can make use of the
"StepDuration"
property available in the DateTimeRangeSlider.
The StepDuration property enables discrete selection, as opposed to continuous
selection, of values along the slider range. When setting the StepDuration
property, you can specify the step value for each date and time component in
the order of years, months, days, hours, minutes, and seconds.
We can enable discrete selection of only every 30 minutes
along the slider range by setting the "StepDuration" property to
"0,0,0,0,30" as per the code snippet.
<sliders:SfDateTimeRangeSlider Minimum="09:00:00" Maximum="17:00:00"
RangeStart="10:30:00" RangeEnd="12:30:00"
StepDuration="0,0,0,0,30" MinorTicksPerInterval="1"
Interval="1" IntervalType="Hours" ShowTicks="True"
DateFormat="hh:mm" ShowLabels="True">
</sliders:SfDateTimeRangeSlider>
|
StepDuration can be set in code behind, as shown below.
sfSlider.StepDuration = new SliderStepDuration(0, 0, 0, 0, 30);
|
Also visit this documentation for more information:
https://help.syncfusion.com/maui/datetime-range-slider/selection#discrete-selection
Best Regards,
Raja.