This is a migrated thread and some comments may be shown as answers.

Fix RadCalendar Error

1 Answer 23 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Mmm
Top achievements
Rank 1
Mmm asked on 26 Nov 2012, 04:07 PM
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.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 28 Nov 2012, 02:43 PM
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.
Tags
Calendar
Asked by
Mmm
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or