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

Slider Dynamic

1 Answer 65 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Mona
Top achievements
Rank 1
Mona asked on 16 Feb 2012, 04:44 PM
Hello

this is the first time use slider so i need help
i ll use slider to make sliding between 2 days, in the first time i load slider, i put the rang of days that i need to be the default but after that i need to change in this range when customer need to see more days by using increasehandler and decreasehandler 

is it possible, please if it possible i need it server side (if can)

Thanks a lot
Mona
 

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 21 Feb 2012, 08:49 AM
Hello Mona,

The scenario that you want to implement is not quite clear. Please check the following examples, as they could help you achieve the desired functionality:

  • The Items collection of RadSlider can be used in order to add and remove items on the server-side. The code sample below demonstrates this:
    RadSliderItem sliderItem = new RadSliderItem("Excellent", "6");
    RadSlider1.Items.Add(sliderItem);
     
    RadSlider1.Items.Remove(0);
  • The RadSlider control can be databound as shown in the online demo Slider / Databinding.

The approaches, shown above, can be utilized for modifying the items of the RadSlider control on your page. As stated in this help article, the slider control has a server-side event OnValueChanged, which is fired when the user changes the Value with the mouse or mouse wheel. You can use this event to detect a handler click and to execute your logic.

If you are still having difficulties after reviewing the provided information, please elaborate on the functionality that you want to achieve, so that I can provide an according solution.

Greetings,
Slav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Slider
Asked by
Mona
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or