Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Slider > Issue in Rad SliderValueChanged event

Not answered Issue in Rad SliderValueChanged event

Feed from this thread
  • Swathi avatar

    Posted on Feb 21, 2011 (permalink)

    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.

    Reply

  • Swathi avatar

    Posted on Feb 22, 2011 (permalink)

    Hi team,
            Its an urgent issue for us let me know the solution as soon as possible.

    Thanks
    Swathi.

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Feb 23, 2011 (permalink)

    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!

    Reply

  • Swathi avatar

    Posted on Feb 23, 2011 (permalink)

    void

     

    benefitPeriodRadSlider_SliderValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)

     

     

    {

     

     

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

     

     

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

    Reply

  • Alex Fidanov Alex Fidanov admin's avatar

    Posted on Feb 28, 2011 (permalink)

    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!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Slider > Issue in Rad SliderValueChanged event
Related resources for "Issue in Rad SliderValueChanged event"

WPF Slider Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]