When OOB, behaviour of calendar changes

4 posts, 0 answers
  1. Ralph
    Ralph avatar
    6 posts
    Member since:
    Aug 2007

    Posted 11 Jul 2010 Link to this post

    I have a Silverlight 4 application that has a RadCalendar (current release) in it which has the SelectionMode set to Multiple.
     
    <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
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 15 Jul 2010 Link to this post

    Hello Ralph,

    Sorry for the late response as we were developing our new Q2 2010 release. I have checked a project similar to yours and couldn't find any strange behavior. Can you send us a working app that we can test it and also some more info describing the error you are concerning about.

    All the best,
    Kaloyan
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Ralph
    Ralph avatar
    6 posts
    Member since:
    Aug 2007

    Posted 15 Jul 2010 Link to this post

    Hi Kaloyan

    no problem with the delay in replying, most understandable. I will endeavour to put together an example that shows the (mis-)behaviour if I can get it to do it again. If I can't I will close the thread.
    .
    .
    .
    I have just put together a simple test application and could not manage to get the issue to occur again so it looks like that there was something else going on. So lets close this thread.

    Thanks very much

    Ralph Price
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 19 Jul 2010 Link to this post

    Hello Ralph,

    Feel free to contact us again in case of any problem appears.

    Sincerely yours,
    Kaloyan
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top