Slider with exponential range

Hello,
I want to use this control with an exponential range and not linear (e.g. you move and it makes 1day, 1week, 1month of range each tick, instead of 1 day, 2 days, 3 days)
This customization is possible?
Thanks,
Regards.

10 Replies

RB Rabhia Beham Kathar Mideenar Syncfusion Team June 13, 2018 12:34 PM UTC

Hi David,

Thanks for contacting Syncfusion Support.

We have analysed your requirement and have created a sample using SfRangeSlider Control. We have used the IValueConverter to get the exponential value. Please have the sample from the below link.

Sample Link: http://www.syncfusion.com/downloads/support/forum/138087/ze/Rangeslider_Slider203697_21598397960 

Please check with the sample and let us know if you have any concern.

Regards,
Rabhia Beham K. 



DP David Perera June 13, 2018 03:41 PM UTC

Thank you for your effort.

I will explain further my requirement.

I do not need labels I just need to stablish a minimum and maximum to the slider. In the final product I will be working with times, since this is a "duration" slider. So básically if you stablish mínimum of 0, and máximum of 4weeks, it should create the intermediate values.

Thank you


DP David Perera June 13, 2018 03:46 PM UTC

Also I would want to ask another question.

It is possible to have two points moving in the Slider for stablish the range? (e.g. startRange and endRange).

Thank you very much




RB Rabhia Beham Kathar Mideenar Syncfusion Team June 14, 2018 11:48 AM UTC

Hi David,

We have to use the same IValueConvertor for the duration slider. We have modified the code snippet for the RangeStart and RangeEnd Value. Please have the sample from the below link.

Sample Link: http://www.syncfusion.com/downloads/support/forum/138087/ze/Rangeslider_Slider203697_3515995241
 
Please let us know if you have any concern.

Regards,
Rabhia Beham K.
 



DP David Perera July 18, 2018 09:03 AM UTC

Thanks for your time,

It is possible to show instead of the values 0, 20, 40, 60, 80, 100, the exponential values instead?

In other words, it is possible to modify the label that is shown when you drag?

By the way, the example is not working very well... if you move the left point, and then the right point, the left point moves also automatically.

Thanks


DP David Perera July 18, 2018 11:01 AM UTC

Hello,

I attach the example you made, modified by me (you can ignore the previous message).

Take into account that the example can take time to initialize.

What I just want is:

1- Show labels and NOT values in the tooltip. when you move the slider.
2- Do not show labels at the bottom

Thanks.

Attachment: Rangeslider_Slider203697_46982293.7z


PA Paul Anderson S Syncfusion Team July 18, 2018 12:39 PM UTC

Hi David, 
 
Thanks for the update. 
Query 1: Show labels and NOT values in the tooltip. when you move the slider. 
Currently we don't have the support to modify the label instead of value in the tooltip. So we have considered this as a feature request and logged a feature report for “Custom values in Tooltip” and this feature will be available in any of our upcoming Volume releases. 
 
Query2: Do not show labels at the bottom 
To hide the value label, set the ShowValueLabel property as false. To hide the custom label, set the ShowCustomLabel as false. By using above two property we can achieve your requirement. 
 
Regards, 
Paul Anderson 



DP David Perera July 18, 2018 12:54 PM UTC

Actually the tooltip label also shows.

I have achived my requirement by putting TooltipTextColor = Color.Transparent, but it makes a strange blink somtimes when you slide.

Thanks


DP David Perera July 18, 2018 01:00 PM UTC

I actually found that I have a property which is ToolTipPlacement that I set to ToolTipPlacement.None.

So I solved the graphic issue, and all works as expected. Thanks!


PA Paul Anderson S Syncfusion Team July 19, 2018 03:53 AM UTC

Hi David, 
 
Thanks for the update. We are glad that you have found the solution for your requirement. Please let us know if you need further assistance. 
 
Regards, 
Paul Anderson 


Loader.
Up arrow icon