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

Crashes app if UI attempts to set date < MinDate value

3 Answers 62 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
bc3tech
Top achievements
Rank 2
bc3tech asked on 31 Aug 2016, 05:20 AM
  1. Set the Minimum date to be tomorrow
  2. Set the initial date (when displayed) to be 1 week from now
  3. Try to pick tomorrow's date

On days like today (8/30) the displayed date will be 9/6. If I want to choose 8/31, the natural flow would be to pick the 8, then pick the 31. If I pick the 8, however, the date is now 8/6 and will crash the app with an ArgumentOutOfRange exception. In order to get to 8/31 I must first go to 10/31 and then change the '10' to an '8'

Exception detail:

System.ArgumentOutOfRangeException: logicalIndex
Parameter name: Not valid index.
   at Telerik.UI.Xaml.Controls.Primitives.LoopingList.RadLoopingList.GetVisualIndex(Int32 logicalIndex)
   at Telerik.UI.Xaml.Controls.Input.DateTimePickers.DateTimeList.UpdateSelectedIndex(LoopingListSelectionChangeReason reason)
   at Telerik.UI.Xaml.Controls.Input.DateTimePickers.DateTimeList.SetNewValue(DateTime newUtcValue, Boolean selectionChanged)
   at Telerik.UI.Xaml.Controls.Input.DateTimePicker.UpdateDateTimeLi

3 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 01 Sep 2016, 09:06 AM
Hello Brandon,

Thank you for reporting this issue. I can confirm that we are able to reproduce it from our side. We are already working on a fix and it will be included in our next official release scheduled for the mid September.

P.S. I have updated your telerik point accordingly.

Regards,
Tsvyatko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
bc3tech
Top achievements
Rank 2
answered on 27 Sep 2016, 05:01 PM
[quote]Tsvyatko said:Hello Brandon,

Thank you for reporting this issue. I can confirm that we are able to reproduce it from our side. We are already working on a fix and it will be included in our next official release scheduled for the mid September.

P.S. I have updated your telerik point accordingly.

Regards,
Tsvyatko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

[/quote]

Was a release put out with this fix in it? If so, can you post the version number here and I'll mark this bug as 'Answered'

0
Accepted
Tsvyatko
Telerik team
answered on 28 Sep 2016, 12:33 PM
Hi Brandon,

The has been addressed in version 2016.3.0914. Please give it a try and let us know if you encounter any further issues.

Regards,
Tsvyatko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DatePicker
Asked by
bc3tech
Top achievements
Rank 2
Answers by
Tsvyatko
Telerik team
bc3tech
Top achievements
Rank 2
Share this question
or