SfRangeSlider with custom values

Hello. In my app I am using SfRangeSlider but I don't know how to put display custom values. I attached the rar file with an image with what I want to implement. Thank you for your time.

Attachment: sfRange_216010b3.rar

5 Replies

RB Rabhia Beham Kathar Mideenar Syncfusion Team May 17, 2018 11:37 AM UTC

Hi Konstantinos,

We have checked the attached image. We could only able to customise the label in SfRangeSlider. And the values could not be customised as of the required image. We have prepared a sample for the query. Please have the sample from the below link.

Sample Link: http://www.syncfusion.com/downloads/support/forum/137591/ze/RangeAndroid137591-436388625
 

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

Regards,
Rabhia beham K.
 



KE Konstantinos Evangelidis May 17, 2018 03:50 PM UTC

Hello and thank you for the answer. I am using this code to set SfRangeSlider and working. Can you please tell me how can I get the selected range of values(start value to end value)? Thank you again

            morning_weekdays_custom_collection = new List<Items>();
            morning_weekdays_custom_collection.Add(new Items() { Label = "AM", Value = 5 });
            morning_weekdays_custom_collection.Add(new Items() { Label = "PM", Value = 16 });
            morning_weekdays = FindViewById(Resource.Id.slider_morming_weekdays) as SfRangeSlider;
            morning_weekdays.ShowCustomLabel = true;
            morning_weekdays.ShowValueLabel = true;
            morning_weekdays.TickFrequency = 1;
            morning_weekdays.Minimum = 5;
            morning_weekdays.Maximum = 16;
            morning_weekdays.CustomLabels = morning_weekdays_custom_collection;
            morning_weekdays.TickPlacement = TickPlacement.Inline;
            morning_weekdays.RangeEnd = 16;
            morning_weekdays.RangeStart = 5;
            morning_weekdays.ShowRange = true;
            morning_weekdays.Orientation = Com.Syncfusion.Sfrangeslider.Orientation.Horizontal; 


RB Rabhia Beham Kathar Mideenar Syncfusion Team May 18, 2018 07:08 AM UTC

Hi Konstantinos,

We have checked your requirement in SfRangeSlider Control. We could get the start value from the RangeStart and End Value from the RangeEnd properties initially.

And also in the run time if the RangeStart and RangeEnd value gets changed we could get the values from RangeStartChanged and RangeEndChanged Events.

We have prepared the sample for the same. Please have the sample from the below link.

Sample Link:  http://www.syncfusion.com/downloads/support/forum/137591/ze/RangeAndroid137591_2868715017
 

Please check the sample and if the requirement differs please mention the exact requirement which will be helpful for us to analyse further and provide an appropriate solution.

Regards,
Rabhia beham K.
 



KE Konstantinos Evangelidis May 18, 2018 09:32 AM UTC

Thank you very much for the answer. Makes me understand. 


RB Rabhia Beham Kathar Mideenar Syncfusion Team May 21, 2018 04:31 AM UTC

Hi Konstantinos,

Thanks for the update.

We are glad that you have achieved your requirement. Please let us know if you need any further assistance.

Regards,
Rabhia Beham K.


Loader.
Up arrow icon