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 can I set day in SfSchedule control?

Good day!
Could you explain how can I set showing date in SfSchedule control for ScheduleType="Day"?

1 Reply

VR Vigneshkumar Ramasamy Syncfusion Team October 5, 2015 11:09 AM UTC

DIV style="MARGIN: 0px"> 
Hi Evgeny,
Thanks for using Syncfusion product.
Based on the given information, we predict that your requirement is to navigate to particular date. We can achieve this, by using the MoveToDate method in the schedule control. Refer to the following code example to use the MoveToDate method.
schedule.MoveToDate(new DateTime(2015, 10, 8));
To set visible dates, use the ScheduleDateRange property in the schedule control. You can use the following code example to set the date range.
    ObservableCollection<DateTime>selectedDates = new ObservableCollection<DateTime>();
            DateTime Date1 = new DateTime(2013, 9, 1);
            DateTime Date2 = new DateTime(2013, 9, 22);
            SfSchedule schedule = new SfSchedule();
            schedule.ScheduleDateRange = selectedDates;
Vigneshkumar R

Live Chat Icon For mobile
Up arrow icon