Fix RadCalendar Error

2 posts, 0 answers
  1. Mmm
    Mmm avatar
    9 posts
    Member since:
    Mar 2011

    Posted 26 Nov 2012 Link to this post

    Following piece of code giving me error, please see screen shot attached.

    UIHelpers.SetSessionVariable("_isNewDates", false);
              if (RadCalendar1.SelectedDates != UIHelpers.CovertFromArrayList((ArrayList)UIHelpers.GetSessionVariable("_oldDates", new ArrayList())))
              {
                  UIHelpers.SetSessionVariable("_isNewDates", true);
              }
     
              UIHelpers.SetSessionVariable("_oldDates", UIHelpers.CovertToArrayList(RadCalendar1.SelectedDates));

    Check this link for exact error as I took this screenshot

    I just implement RadCalendar instead of my ASP.net Calendar and hope someone can help me.
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 28 Nov 2012 Link to this post

    Hello,

    You can use such approach:
    RadCalendar1.SelectedDates.Matches(new SelectedDateCollection( YourListHere ))

    Greetings,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top