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.
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
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.
Its an urgent issue for us let me know the solution as soon as possible.
Thanks
Swathi.
0
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
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
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
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!