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

Slider_SelectionRangeChanged event called Twice

1 Answer 69 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 25 Nov 2011, 02:39 AM

Hi,

 

We are using the Rad Controls for Silverlight Q1 2011 SP1(Version 11.1.419.0) in our application.

We are not able to set the Rad Slider's selection (It is a read only property). However in the documentation (Online) it shows that we can set the selection property at runtime.

 

Is it because of older version we are using?

 

 

Also currently we are setting the selection Range based on Selection Start & Selection End , so the Slider_SelectionRangeChanged event is firing 2 times?(One for SelectionStart chnage and , 2nd time for SelectionEnd Change)

Is it possible to restrict the change event to happen once , like how it is happening for RadTimeBar Control?

 

I.e. RadTimeBar.Selection = new SelectionRange<DateTime> {Start = Start Date, End = End Date };

 

 

Even in RadTimeBar if we set the RadTimeBar.SelectionStart and RadTimeBar.SelectionEnd separatly(not as mentioned above)RadTimeBar_SelectionChanged event is happening twice?

 

 

Thanks in Advance
B.Balaji

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 29 Nov 2011, 03:47 PM
Hi Balaji,

My advice is to update to our official Q3 2011 release which was released couple of weeks ago.  As for your scenario, you'll have to use the Selection property:

slider1.Selection = new SelectionRange<double>(selectionStart, selectionEnd);

If you examine the attached application, you'll see that the SelectionChanged event is fired just once, which I believe is suitable for your scenario. Let me know how I can be of further assistance. 

Kind regards,
Kiril Stanoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Slider
Asked by
Balaji
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or