This is a migrated thread and some comments may be shown as answers.

Shared sliders

4 Answers 42 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 02 Nov 2011, 01:25 PM
Hi,

I need to put circa 20 sliders onto one page - a survey.  I'd prefer to somehow use one shared slider - similar to with the calendar popup code.  Is there an easy way to do this?  Same goes for the slider items - worst case I suppose that I can add them from the server code but would prefer that I could use a shared calendar.

Any help much appreciated.

Cheers,

Jon

4 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 04 Nov 2011, 02:46 PM
Hi Jon,

Please provide more detailed description of the scenario that you want to implement so that we can suggest the most appropriate approach. Note that the RadTimePicker supports shared TimeView as this is a component of the control that is not visible unless opened specifically. The case with shared color collection between RadColorPickers with ShowIcon set to true is similar. As the RadSlider operates on a different principle, I will need more information on the implementation that you want to achieve in order to provide a specific solution, if such is possible.

I am looking forward to your description of the desired scenario.

Best wishes,
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
Jon
Top achievements
Rank 1
answered on 04 Nov 2011, 02:57 PM
Hi Stav

It's fairly simple.  I have 30 sliders on one page,  each slider uses the same set of 5 items that are programmed into the items collection.  The page is done with a formview so there is a new, edit and insert template for them.  As such in the aspx code I have 90 sliders on the page although only 30 of them  are in use on any page. 

I'd like to speed the page up by reusing any reusable components....

Regards,

Jon
0
Slav
Telerik team
answered on 09 Nov 2011, 10:30 AM
Hi Jon,

Please note that there are 30 RadSliders in every one of the three templates of the FormView and when a particular mode is selected, only the slider controls in the corresponding template are rendered on the page. I would suggest using a Web User Control in order to define all repeating elements and controls on your page, so that you don't have to configure every RadSlider separately.

In case you want to speed up the page, containing 30 slider controls, you could split them in several ASP Panels and show only a part of the RadSliders by setting the Visible property of the panels, if such approach is compatible with your scenario.

I hope this helps. Please let us know if you need additional assistance.

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
Jon
Top achievements
Rank 1
answered on 09 Nov 2011, 10:36 AM
Hi Slav,

Yeah I'd said 90 as that give you an indication of how long the page is.  I think I'd have gone another route if it was 90 on the page being rendered :)

I had considered the user control approach but for this one page just copied and pasted for simplicity.

The panel approach would probably work if I use a wizard approach BUT it wouldn't work on the summary page - then again perhaps the summary page would be better not using sliders in any event.

Saying about the Wizard approach that is a control that would go down very well - some form of formview type wizard thing for asp.net...

Thanks for the advice,

Regards,

Jon
Tags
Slider
Asked by
Jon
Top achievements
Rank 1
Answers by
Slav
Telerik team
Jon
Top achievements
Rank 1
Share this question
or