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

Determine what date was unselected.

2 Answers 58 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 07 Mar 2011, 08:31 PM
I have the calendar set to allow multiple selection. Each selected day is going to be stored in the db. The issue I am having is determining what date was unselected from e.SelectedDates. I have found no other function/property to detemine this value.

My goal is simular to this. but even this does not allow me to know what the unselected date was.
http://www.telerik.com/community/forums/aspnet-ajax/calendar/toggle-function.aspx

I am using VS2005 telerik version 2008.1.619.20. I cannot upgrade.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 08 Mar 2011, 02:22 PM
Hello Dan,


The behaviour is expected for RadCalendar and the "SelectedDatesEventArgs" contains only SelctedDates collection.

One suggestion to get the unselected date is saving the clicked date (unselected date) in a HiddenField from client-event 'OnDateSelected', and accessing the HiddenField control in code behind - in 'SelectionChanged'.


-Shinu.
0
Dan
Top achievements
Rank 1
answered on 08 Mar 2011, 10:24 PM
I used this method and it actually worked great, not ideal, but exactly what I needed it to do. Thanks for your input.
Tags
Calendar
Asked by
Dan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Dan
Top achievements
Rank 1
Share this question
or