This question is locked. New answers and comments are not allowed.
I have a Silverlight 4 application that has a RadCalendar (current release) in it which has the SelectionMode set to Multiple.
On load there are 5 dates added to a List(Of Date). These dates are then selected in the calendar control.
The user can then interact with the calendar, select a dates and add it to the List. If they pick a further date, their last date is removed and their new date added.
This behavior is working correctly in FireFox when run. However when it is run in OOB mode the selection is added to rather than quickly.
There is no apparent reason to me that the behaviour is changing and was hoping that someone else can replicate it before I log a bug.
Thanks
Ralph Price
GIS Analyst and Application Developer
Rotorua District Council
<
telerikInput:RadCalendar
HorizontalAlignment
=
"Left"
Grid.Row
=
"1"
Name
=
"cldrBeginDate"
VerticalAlignment
=
"Top"
Width
=
"194"
AreWeekNumbersVisible
=
"False"
FontSize
=
"9"
Margin
=
"2,2,2,2"
telerik:StyleManager.Theme
=
"Windows7"
IsTodayHighlighted
=
"True"
SelectionMode
=
"Multiple"
SelectedDate
=
"{Binding Mode=OneWay}"
>
</
telerikInput:RadCalendar
>
On load there are 5 dates added to a List(Of Date). These dates are then selected in the calendar control.
The user can then interact with the calendar, select a dates and add it to the List. If they pick a further date, their last date is removed and their new date added.
This behavior is working correctly in FireFox when run. However when it is run in OOB mode the selection is added to rather than quickly.
Private
Sub
wsCommon_Pxy_GetKeyDatesCompleted(
ByVal
sender
As
Object
,
ByVal
e
As
wsCommon_Proxy.GetKeyDatesCompletedEventArgs)
Dim
keyDatesStr
As
String
= e.Result
Dim
keyDates
As
String
() = keyDatesStr.Split(
"|"
)
_q1 = keyDates(1)
_q2 = keyDates(3)
_q3 = keyDates(5)
_q4 = keyDates(7)
_keyDates =
New
List(Of
Date
)
_keyDates.Add(
Date
.Now)
_keyDates.Add(keyDates(1))
_keyDates.Add(keyDates(3))
_keyDates.Add(keyDates(5))
_keyDates.Add(keyDates(7))
AddInstalDatesToCalendar()
End
Sub
Private
Sub
AddInstalDatesToCalendar()
cldrBeginDate.SelectedDates.Clear()
cldrBeginDate.SelectedDates.Add(
Date
.Now)
cldrBeginDate.SelectedDates.Add(_q1)
cldrBeginDate.SelectedDates.Add(_q2)
cldrBeginDate.SelectedDates.Add(_q3)
cldrBeginDate.SelectedDates.Add(_q4)
End
Sub
Private
Sub
cldrBeginDate_SelectionChanged(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Windows.Controls.SelectionChangedEventArgs)
Handles
cldrBeginDate.SelectionChanged
If
cldrBeginDate.SelectedDates.Count > 6
Then
_oldSelectedDate = cldrBeginDate.SelectedDates.Item(5)
cldrBeginDate.SelectedDates.RemoveAt(5)
ElseIf
cldrBeginDate.SelectedDates.Count = 6
Then
Dim
newSelectedDate
As
Date
= cldrBeginDate.SelectedDates.Item(5)
txtBlkNumUnits.Text =
"Remaining time periods"
& vbCrLf &
"from "
& newSelectedDate.ToShortDateString & vbCrLf &
"to "
& targetDate.ToShortDateString
End
If
End
Sub
There is no apparent reason to me that the behaviour is changing and was hoping that someone else can replicate it before I log a bug.
Thanks
Ralph Price
GIS Analyst and Application Developer
Rotorua District Council