This topic contains 2 replies, has 2 voices, and was last updated by Florian Auer 10 years ago.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › General Discussions › Editors › ScrollBar, Slider, BulletChart, RangeSelector › RangeSlider – dynamic change: allocation size overflow
Tagged: allocation size overflow, Angular slider, destroy, dynamic setting, jquery slider, jqxslider, large value, property, range, rangeSlider, slider
This topic contains 2 replies, has 2 voices, and was last updated by Florian Auer 10 years ago.
Hi
I have an jqxSlider defined as rangeSlider that has to change its min and max range dynamically on certain events.
But if I redefine the ranges to some higher values, the system throws an “allocation size overflow”.
Example:
https://jsfiddle.net/f7ygep5k/2/
So the question is:
Whats the best practice to change a sliders range with high values?
I also tried to call the “destroy method” first and then rebuild the slider completely. But thats not a good solution I think, due the the code for creating the new slider has “manually” to wait for the “destroy” to be finished as there is no callback/promise possible.
Hi Florian Auer,
The solution using destroy is suitable in this case, because the method works synchronously. Please take a look at the following example that works as expected: https://jsfiddle.net/Dimitar_jQWidgets/L9nku64x/.
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/
Hi Dimitar
Yes, thats also the way i now had implemented.
But sad with this is, that all events attached to the slider will have also to be recreated.
So the logic for creating an updating a slider got more complicated.
You must be logged in to reply to this topic.