We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

HOW TO REMOVE THE AUTOMATIC SELECTION DATES IN CONTROL SCHEDULE?

HELLO Syncfusion. 
I AM WORKING WITH CONTROL SCHEDULE, TO MULTIPLE CHOICE OF DATES, BUT I REALIZE THAT DAY YOU CHOOSE IN A MONTH, IS SELECTED IN THE NEXT MONTH AUTOMATICALLY. 
THERE IS A WAY TO REMOVE THIS PROPERTY?

THANKS & REGARDS.

3 Replies

MK Muthukumar Kalyanasundaram Syncfusion Team July 2, 2014 10:47 AM UTC

Hi Juan,

 

Thank you for your interest in Syncfusion products.

 

The automatic selection of dates in calendar when switchover to next month in the schedule control can be resolved  by using DateValueChanged event. You can make use of below code within that event,

 

Code Snippet:

 

            this.scheduleControl1.Calendar.SelectedDates.Clear();           

 

Please let us know if you have any concern.

 

Regards,

Muthukumar K



JZ Juan Zavala July 3, 2014 05:34 PM UTC

HI MUTHUKUMAR, THANKS BY OYUR ANSWER.
BUT, WHERE HAVE OTHER QUESTIONS ABOUT THIS EVENT IS DATEVALUECHANGED, you mention, SEEKING TREATMENT IN THE EVENT LIST OF CONTROL AND HE COULD NOT FIND. 
HELP ME IF YOU COULD you QUESTION AS SET,'d really appreciate it.

THANKS AND REGARDS.


MK Muthukumar Kalyanasundaram Syncfusion Team July 8, 2014 05:30 PM UTC

Hi Juan,

 

Regret for the delay.

 

The selection of dates in calendar when switchover to next month in the schedule control can be resolved  by using DateValueChanged event. You can make use of below code within that event, 

 

Code Snippet:

 

 this.scheduleControl1.Calendar.DateValueChanged += new DateValueChangedEventHandler(Calendar_DateValueChanged);

 

void Calendar_DateValueChanged(object sender, EventArgs e)

        {

            scheduleControl1.PerformSwitchToScheduleViewTypeClick(ScheduleViewType.Month);

            this.scheduleControl1.Calendar.SelectedDates.Clear();

 

        }

 

Please let us know if you have any concern.

 

Regards,           

Muthukumar K


Loader.
Live Chat Icon For mobile
Up arrow icon