Hello,
I'm trying to dynamically change my slider's values based on what the user chooses from a radio button list. For this example, we'll say my range starts at 500-600 with large ticks every 20 and small ticks every 4. Initially this works fine. When I change my values client side using AJAX, the new range is 1000-1200. I'm using the following to change the values:
This again works fine. However, when I change the radio button back to its original setting, the values become unreadable and there are a ton of ticks. I investigated using FireBug and found that there are list items inside the containing UL of the slider going from 500 to 1200. All of the values on the slider appear to be correct (min, max, selection start and end), but for some reason, its adding all these list items. I've tried removing them through jQuery but they just show right back up. Any ideas?
I've attached images below. First is initial, second is after the first radio button change, and third is after going back to the intial state.
*Ahem* I tried to attach images, but they disappeared and do everytime I try to upload them.
I'm trying to dynamically change my slider's values based on what the user chooses from a radio button list. For this example, we'll say my range starts at 500-600 with large ticks every 20 and small ticks every 4. Initially this works fine. When I change my values client side using AJAX, the new range is 1000-1200. I'm using the following to change the values:
function pricesSuccess_method(results, userContext, methodName) { |
var slider = $find('<%= uxPriceRangeSlider.ClientID %>'); |
slider.set_minimumValue(results[0]); |
slider.set_maximumValue(results[results.length - 1]); |
slider.set_selectionStart(results[0]); |
slider.set_selectionEnd(results[results.length - 1]); |
slider.set_smallChange((results[results.length - 1] - results[0]) / 25 > 1 ? (results[results.length - 1] - results[0]) / 25 : 1); |
slider.set_largeChange((results[results.length - 1] - results[0]) / 5 > 1 ? (results[results.length - 1] - results[0]) / 5 : 1); |
slider.Redraw(); |
} |
This again works fine. However, when I change the radio button back to its original setting, the values become unreadable and there are a ton of ticks. I investigated using FireBug and found that there are list items inside the containing UL of the slider going from 500 to 1200. All of the values on the slider appear to be correct (min, max, selection start and end), but for some reason, its adding all these list items. I've tried removing them through jQuery but they just show right back up. Any ideas?
I've attached images below. First is initial, second is after the first radio button change, and third is after going back to the intial state.
*Ahem* I tried to attach images, but they disappeared and do everytime I try to upload them.