Is it possible to remove an item from a slider via Javascript? Essentially, I'm looking for a way to limit the number of slider items based on the user's screen resolution but can't figure out how to remove a slider item and have it repaint correctly. Any help is greatly appreciated!
4 Answers, 1 is accepted
0
Hi Ian,
Currently the client-side API of RadSlider does not support adding and removing items. Nevertheless, you can achieve a similar effect by performing an AJAX request to the server in order to add and remove items from its Items collection:
Regards,
Slav
the Telerik team
Currently the client-side API of RadSlider does not support adding and removing items. Nevertheless, you can achieve a similar effect by performing an AJAX request to the server in order to add and remove items from its Items collection:
RadSlider1.Items.Add(
new
RadSliderItem(
"Item 1"
,
"Value1"
));
RadSlider1.Items.Remove(0);
Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jonathan
Top achievements
Rank 1
answered on 12 Sep 2012, 03:06 PM
Hi,
Is client side functionality for the radslider coming in a future release? Is it at least in the roadmap?
Thanks.
Is client side functionality for the radslider coming in a future release? Is it at least in the roadmap?
Thanks.
0
Hi Jonathan,
The client-side feature that will allow adding and removing RadSlider items on the client-side is in our To Do list. Nevertheless, currently we have tasks with higher priority so I am unable to provide a firm estimate when this feature will be implemented. You can track its status and vote for it via this PITS Item.
Kind regards,
Slav
the Telerik team
The client-side feature that will allow adding and removing RadSlider items on the client-side is in our To Do list. Nevertheless, currently we have tasks with higher priority so I am unable to provide a firm estimate when this feature will be implemented. You can track its status and vote for it via this PITS Item.
Kind regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jonathan
Top achievements
Rank 1
answered on 25 Sep 2012, 01:26 AM
Hi Slav,
Thanks for the update. Still a fan either way.
Regards,
Jonathan
Thanks for the update. Still a fan either way.
Regards,
Jonathan