Problems with MinSelectionRange (Silverlight)

4 posts, 1 answers
  1. Samuel
    Samuel avatar
    13 posts
    Member since:
    Dec 2011

    Posted 10 Jan 2012 Link to this post

    I'm using the 2011 Q3 release for Silverlight... I'm trying to limit the minimum range to 7 days.  I've tried setting the MinSelectionRange in the XAML and in the code-behind but it doesn't seem to stick.  I can still select a single day.  I used a previous version of the control in another project and this functionality worked fine.  I was only able to select blocks of 7 days or more.  Anyone know what's going on with this now?
  2. Answer
    Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 11 Jan 2012 Link to this post

    Hello Samuel,

    I tested our First Look demo, and the MinSelectionRange setting is applied as expected. Indeed, the minimum range in the demo is 3 days, however, the value itself should not make a difference.  One thing that could be causing the problem, is that there is a required precedence of the TimeBar's properties. Please refer to our online help for additional details.

    In case my assumption does not help you, please provide additional details on our scenario. It will be best if post the code of your RadTimeBar definition as well.

    Greetings,
    Tsvetie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Samuel
    Samuel avatar
    13 posts
    Member since:
    Dec 2011

    Posted 11 Jan 2012 Link to this post

    I wasn't previously binding the Start and End dates in the XAML because of the way another control needs to be used.  If I do supply binding dates this seems to work.  However, I'd like to note that previously I was setting the Start and End dates in the code-behind as well as setting the minimum selection but even after setting the property, it would remain at 0.
  5. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 12 Jan 2012 Link to this post

    Hello Samuel,

    You should not have problems, setting or changing the values of PeriodStart, PeriodEnd and MinSelectionRange properties in code-behind, as long as you adhere to the correct precedence, mentioned in our help topic

    In case you need additional help with that, please open a formal support ticket and send us a running test project, demonstrating the problem that you have, together with detailed information on reproduction steps and expected result.

    All the best,
    Tsvetie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top