Move when click outside maximumrangespan

2 posts, 0 answers
  1. Bjorn Sundby
    Bjorn Sundby avatar
    5 posts
    Member since:
    Jun 2012

    Posted 21 Mar 2012 Link to this post

    We have a RadSlider with SelectionRange, that we use for choosing start and end date.  Our maximum span is set to one week (approx 0.05 of the slider range).  If the user clicks on the slider outside the maximum range, we would like it to move with MaximumRangeSpan (one week) in the direction of the click, giving it similar behavior to standard windows scroll bars. 
    Is this behavior possible to achieve?  We're using Silverlight with MVVM.
  2. Zarko
    Zarko avatar
    755 posts

    Posted 23 Mar 2012 Link to this post

    At the moment there's no straightforward way to do this, but you can try to handle the MouseDown event of the RadSlider and manually change SelectionEnd and SelectionStart.
    I've attached a sample project which shows this so could you please examine it and if you have more questions feel free to ask.

    Kind regards,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top