- Home
- Forum
- Xamarin.Forms
- SfRangeSlider iOS - with values lower than zero
SfRangeSlider iOS - with values lower than zero
Hi,
I have set my rangeslider with values lower than zero like this :
customCollection = new ObservableCollection<Items>(); customCollection.Add(new Items() { Label = "", Value = -5 }); customCollection.Add(new Items() { Label = "", Value = -4 }); customCollection.Add(new Items() { Label = "", Value = -3 }); customCollection.Add(new Items() { Label = "", Value = -2 }); customCollection.Add(new Items() { Label = "", Value = -1 }); customCollection.Add(new Items() { Label = "0", Value = 0 }); customCollection.Add(new Items() { Label = "", Value = 1 }); customCollection.Add(new Items() { Label = "", Value = 2 }); customCollection.Add(new Items() { Label = "", Value = 3 }); customCollection.Add(new Items() { Label = "", Value = 4 }); customCollection.Add(new Items() { Label = "", Value = 5 }); customCollection.Add(new Items() { Label = "", Value = 6 }); this.BindingContext = this;
But when i tried to pick a thumb, the thumb behaved erratically. I could'nt push it to a value lower than zero and it was replaced automatically to the middle of the slider.
In Android, there was no issues.
Best regards.
SIGN IN To post a reply.
3 Replies
RB
Rabhia Beham Kathar Mideenar
Syncfusion Team
June 25, 2018 10:58 AM UTC
Hi Gilles,
Thanks for contacting Syncfusion Support.
We have checked the reported issue in SfRangeSlider Control. We could not able to reproduce the reported issue. We have prepared a sample with the CustomCollection and have checked the reported issue. Please have the sample from the below link.
Sample Link: https://www.syncfusion.com/downloads/support/forum/138288/ze/RangeSlider138288-899243756
Thanks for contacting Syncfusion Support.
We have checked the reported issue in SfRangeSlider Control. We could not able to reproduce the reported issue. We have prepared a sample with the CustomCollection and have checked the reported issue. Please have the sample from the below link.
Sample Link: https://www.syncfusion.com/downloads/support/forum/138288/ze/RangeSlider138288-899243756
And we have also recorded a video for your reference. Please have the video from the below link.
Video Link: https://www.syncfusion.com/downloads/support/forum/138288/ze/RangeVideo1-631120979
Please check with the sample and if the issue persists, please modify the same with the issue reproducing steps which will be helpful for us to analyse further and provide an appropriate solution.
Regards,
Rabhia Beham K.
Hi Gilles,
Thanks for contacting Syncfusion Support.
We have checked the reported issue in SfRangeSlider Control. We could not able to reproduce the reported issue. We have prepared a sample with the CustomCollection and have checked the reported issue. Please have the sample from the below link.
Sample Link: http://www.syncfusion.com/downloads/support/forum/138288/ze/RangeSlider138288-899243756
And we have also recorded a video for your reference. Please have the video from the below link.
Video Link: http://www.syncfusion.com/downloads/support/forum/138288/ze/RangeVideo1-631120979
Please check with the sample and if the issue persists, please modify the same with the issue reproducing steps which will be helpful for us to analyse further and provide an appropriate solution.
Regards,
Rabhia Beham K.
Hi,
Thx for your reply.
I have a PCL not shared projet. Is there some king of difference ?
Rgds.
customCollection = new ObservableCollection<Items>(); customCollection.Add(new Items() { Label = "16h", Value = -8 }); customCollection.Add(new Items() { Label = "", Value = -7 }); customCollection.Add(new Items() { Label = "", Value = -6 }); customCollection.Add(new Items() { Label = "", Value = -5 }); customCollection.Add(new Items() { Label = "", Value = -4 }); customCollection.Add(new Items() { Label = "", Value = -3 }); customCollection.Add(new Items() { Label = "", Value = -2 }); customCollection.Add(new Items() { Label = "", Value = -1 }); customCollection.Add(new Items() { Label = Localization.LocalizedStrings.General_Midnight, Value = 0 }); customCollection.Add(new Items() { Label = "", Value = 1 }); customCollection.Add(new Items() { Label = "", Value = 2 }); customCollection.Add(new Items() { Label = "", Value = 3 }); customCollection.Add(new Items() { Label = "", Value = 4 }); customCollection.Add(new Items() { Label = "", Value = 5 }); customCollection.Add(new Items() { Label = "", Value = 6 }); customCollection.Add(new Items() { Label = "", Value = 7 }); customCollection.Add(new Items() { Label = "", Value = 8 }); customCollection.Add(new Items() { Label = "", Value = 9 }); customCollection.Add(new Items() { Label = "", Value = 10 }); customCollection.Add(new Items() { Label = "", Value = 11 }); customCollection.Add(new Items() { Label = "", Value = 12 }); customCollection.Add(new Items() { Label = "", Value = 13 }); customCollection.Add(new Items() { Label = "", Value = 14 }); customCollection.Add(new Items() { Label = "", Value = 15 }); customCollection.Add(new Items() { Label = "16h", Value = 16 }); rangeSlider1.CustomLabels = customCollection; rangeSlider2.CustomLabels = customCollection; rangeSlider1.Minimum = -8; rangeSlider1.Maximum = 16; rangeSlider1.SnapsTo = SnapsTo.StepValues; rangeSlider1.StepFrequency = 0.5; rangeSlider1.ShowValueLabel = false; rangeSlider1.ToolTipPlacement = ToolTipPlacement.None; rangeSlider1.TickPlacement = TickPlacement.None; rangeSlider1.ToolTipTextColor = Color.Red; rangeSlider1.ShowRange = true; rangeSlider2.Minimum = -8; rangeSlider2.Maximum = 16; rangeSlider2.SnapsTo = SnapsTo.StepValues; rangeSlider2.StepFrequency = 0.5; rangeSlider2.ShowValueLabel = false; rangeSlider2.ToolTipPlacement = ToolTipPlacement.None; rangeSlider2.TickPlacement = TickPlacement.None; rangeSlider2.ToolTipTextColor = Color.Red; rangeSlider2.ShowRange = true; rangeSlider2.TickFrequency = 1; //rangeSlider2.RangeChanging += RangeSlider2_RangeChanging; rangeSlider1.TickFrequency = 1; //rangeSlider1.RangeChanging += RangeSlider1_RangeChanging; rangeSlider2.ShowCustomLabel = true; rangeSlider1.ShowCustomLabel = true; rangeSlider2.IsEnabled = true; rangeSlider1.IsEnabled = true; rangeSlider2.Opacity = 1d; rangeSlider1.Opacity = 1d; rangeSlider1.TrackSelectionThickness = 4; rangeSlider2.TrackSelectionThickness = 4;
RB
Rabhia Beham Kathar Mideenar
Syncfusion Team
June 27, 2018 08:40 AM UTC
Hi Gilles,
Sorry for the inconvenience.
We have checked the reported issue with the code snippet provided and we could reproduce the reported issue when SnapsTo is given as StepValues. We have logged the defect report for the same. We are currently working on the reported issue and the fix will be available in Volume 2 Sp 1 release which is expected to be rolled out by the end of July 2018.
Please let us know if you have any concern.
Regards,
Rabhia Beham K.
Sorry for the inconvenience.
We have checked the reported issue with the code snippet provided and we could reproduce the reported issue when SnapsTo is given as StepValues. We have logged the defect report for the same. We are currently working on the reported issue and the fix will be available in Volume 2 Sp 1 release which is expected to be rolled out by the end of July 2018.
Please let us know if you have any concern.
Regards,
Rabhia Beham K.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
GM Gilles MARTINEZ
- Jun 22, 2018 01:43 PM UTC
- Jun 27, 2018 08:40 AM UTC