hi,
Any body can help me about NumericRangeSlider, I am learning infragistics controls. we have an issue
to solve,The issue is
We have three NumericRangeSlider
first slider starts with minimum value from 61 and maximum value 100
Second slider starts with minimum value from to 41 and maximum value 60
Third slider starts with minimum value from to 0 and maximum value 40.
if change the first slider minimum value to 70 then we have to change maximum value of the second
slider to 69 and vice versa.
Plz any can help me.
Hello,
I apologize I haven’t been clear enough, but in my sample project there are three sliders and the first one Maxvalue is bound to the second one MinValue and the second one MaxValue is bound to the third one MinValue. All the bindings are two way, which means that whenever you change some of the bound Properties it will affects the other one. I also used a Converter, so when you change one of the Values, the other one is set to the same Value + 1 or - 1 depending which exact Value you Changed. This way you don’t need to keep the change or the old and new values. Also in the sample there is a Button which changes the First Slider MaxValue and you can see that second Slider’s Min Value is also changed. To clarify, the event Nikola suggest you is fired when you change the Value of the Slider. Please let me know if need further clarifications on this matter.
Looking forward for your reply.
Hi vinaykumar,
there is ThumbValueChanged event that is available for all sliders. The event handler for that event has the following arguments - NewValue and OldValue, which might help you in your scenario. Let me know if that is fine for you!
Regards,
Nikola.
Can you please tell me,how can i store the change value of numeric slider.If i change the slider min value from 60 to 70.The change is 10.I want to catch that value by using that value 10,i have to increase max value of the second slider from 59 to 69.
Which property and event catches that value,Please help me,i am waiting for reply..
hello stefan,
I am going through your example, But i want this
If I change the slider minimum value how can i get that value,by using that value i can assign second slider maximum value
Thank you for your post. I have been looking through it and I created a sample project for you with the functionality you want. Basically I bound the XamNumericRangeSliders’ MaxValues to the next Slider's MinValue and used a Converter to decrease it by 1. Please let me know if this helps you or you need further clarifications on this matter.