AD
Administrator
Syncfusion Team
June 26, 2008 03:37 PM UTC
Try code like this. It also sets the appropriate date in the Navigation Calendar.
this.scheduleControl1.Calendar.DateValue = DateTime.Now.Date;
this.scheduleControl1.Calendar.Today = DateTime.Now.Date;
//use begin/endupdates avoid possible blinking
//clear the selected dates in the calendar and set the desired dates
this.scheduleControl1.GetScheduleHost().BeginUpdate();
this.scheduleControl1.Calendar.SelectedDates.BeginUpdate();
this.scheduleControl1.Calendar.SelectedDates.Clear();
this.scheduleControl1.Calendar.SelectedDates.Add(DateTime.Now.Date);
this.scheduleControl1.Calendar.SelectedDates.EndUpdate();
this.scheduleControl1.GetScheduleHost().EndUpdate();
AD
Administrator
Syncfusion Team
June 26, 2008 04:19 PM UTC
thanks for your quick answering. :)
by the way, I really feel a bit surprised cause this action needs so many lines of code as your answering.