Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Slider > Slider_SelectionRangeChanged event called Twice

Not answered Slider_SelectionRangeChanged event called Twice

Feed from this thread
  • Balaji avatar

    Posted on Nov 24, 2011 (permalink)

    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

    Reply

  • Kiril Stanoev Kiril Stanoev avatar

    Posted on Nov 29, 2011 (permalink)

    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 >>

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Slider > Slider_SelectionRangeChanged event called Twice
Related resources for "Slider_SelectionRangeChanged event called Twice"

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