Slider_SelectionRangeChanged event called Twice

2 posts, 0 answers
  1. Balaji
    Balaji avatar
    19 posts
    Member since:
    Jul 2011

    Posted 24 Nov 2011 Link to this post

    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

  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 29 Nov 2011 Link to this post

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

  3. DevCraft banner
Back to Top