Completed
Last Updated: 05 Jun 2014 07:08 by ADMIN
ADMIN
Nikolay
Created on: 18 Apr 2013 10:02
Category: Editors
Type: Bug Report
2
FIX. Setting the date from the calendar part and from the textbox part leave the calendar with two dates selected
Select a date from RadDateTimePicker using the calendar dropdown. Now type another date in the textbox to make a new selection. Open the drop-down and you will see that there are two dates 'selected'. The issue occurs, because when you select from the calendar, you set the cell to Focused.Selected. When you then type a date in the textbox, you change the Focused cell, but the selection on the previous cell remains. So, you end up with two 'selected' cells. The workaround is to clear the selection on opening the dropdown: 

        void radDateTimePicker1_Opening(object sender, CancelEventArgs e)
        {
            calendar.SelectedDates.Clear();
        }
0 comments