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 Calendar and hope someone can help me.
  2. Vasil
    Vasil avatar
    1638 posts

    Posted 28 Nov 2012 Link to this post


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

    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.
Back to Top