Issue in Rad SliderValueChanged event

5 posts, 0 answers
  1. Swathi
    Swathi avatar
    16 posts
    Member since:
    Dec 2010

    Posted 21 Feb 2011 Link to this post

    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.
  2. Swathi
    Swathi avatar
    16 posts
    Member since:
    Dec 2010

    Posted 22 Feb 2011 Link to this post

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

    Thanks
    Swathi.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 23 Feb 2011 Link to this post

    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!
  5. Swathi
    Swathi avatar
    16 posts
    Member since:
    Dec 2010

    Posted 23 Feb 2011 Link to this post

    void

     

    benefitPeriodRadSlider_SliderValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)

     

     

    {

     

     

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

     

     

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

  6. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 28 Feb 2011 Link to this post

    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!
Back to Top
UI for WPF is Visual Studio 2017 Ready