This is a migrated thread and some comments may be shown as answers.

Problems with MinSelectionRange (Silverlight)

3 Answers 64 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Samuel
Top achievements
Rank 1
Samuel asked on 10 Jan 2012, 06:08 PM
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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetie
Telerik team
answered on 11 Jan 2012, 09:17 AM
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 >>

0
Samuel
Top achievements
Rank 1
answered on 11 Jan 2012, 02:23 PM
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.
0
Tsvetie
Telerik team
answered on 12 Jan 2012, 01:59 PM
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 >>

Tags
TimeBar
Asked by
Samuel
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Samuel
Top achievements
Rank 1
Share this question
or