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

Issue in Rad SliderValueChanged event

4 Answers 88 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Swathi
Top achievements
Rank 1
Swathi asked on 21 Feb 2011, 07:01 AM
Hi Team,
   I have resgistered SliderValueChanged  event for RadSlider and when i am showing a validation thriugh MessageBox.show() in this event the event is being called multiple times unitl it reaches either first tick or last tick.

Please suggest me a solution to avoid this.

Thanks in advance.
Swathi.

4 Answers, 1 is accepted

Sort by
0
Swathi
Top achievements
Rank 1
answered on 22 Feb 2011, 10:02 AM
Hi team,
        Its an urgent issue for us let me know the solution as soon as possible.

Thanks
Swathi.
0
Petar Mladenov
Telerik team
answered on 23 Feb 2011, 03:05 PM
Hello Swathi,

You can have a boolean property that you can check before you show the message box? Could you please elaborate more on your scenario , a sample code would also be highly appreciated? This way we could investigate in depth and provide you with a better solution.

Greetings,
Petar Mladenov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Swathi
Top achievements
Rank 1
answered on 23 Feb 2011, 03:39 PM

void

 

benefitPeriodRadSlider_SliderValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)

 

 

{

 

 

 if ((eliminationPeriodRadSlider.GetSliderValue() == Contexts.DI105.ELIMINATION_PERIOD_GRP.ELIMINATION_PERIOD_180DAYS ))

 

 

 {
    MessageBox.Show("Value not valid");
 }
}

0
Alex Fidanov
Telerik team
answered on 28 Feb 2011, 02:16 PM
Hello Swathi,

You can use the IsDeferredDraggingEnabled property of the RadSlider so that the value changed event is not fired while you are dragging the thumb. Let us know if that is what you are looking for.

Greetings,
Alex Fidanov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Slider
Asked by
Swathi
Top achievements
Rank 1
Answers by
Swathi
Top achievements
Rank 1
Petar Mladenov
Telerik team
Alex Fidanov
Telerik team
Share this question
or