Latest updates in WebScheduler.NET 2.0.1000.214
Hi all, we just released new hotfixes for Intersoft products. WebScheduler.NET 2.0 Build 214 is one of the included hotfixes. Here are the details.
New client side APIs
In Month view, the dates displayed are not only the active month’s dates. The dates of previous and next month may also be displayed. In certain scenarios, you might need to retrieve the start date and end date of the week or month of a specific date. For example: if the selected date is Wednesday, 28th of January 2008, how can i programmatically retrieve the start or end date of the week ? Well, you can always calculate it, but to make it easier, we have provided some new client side APIs. They are:
- GetStartDateOfWeek(date): get the start date of week of a specific date. If you set 28th of January 2009 as the date parameter, the result of this API is Sunday, 25th of January 2009.
- GetEndDateOfWeek(date): get the end date of week of a specific date. If you set 28th of January 2009 as the date parameter, the result of this API is Saturday, 31st of January 2009.
- GetStartDateOfMonth(date): get the start date of month of a specific date. If you set 28th of January 2009 as the date parameter, the result of this API is Sunday, 28th of December 2008.
- GetEndDateOfMonth(date): get the end date of month of a specific date. If you set 28th of January 2009 as the date parameter, the result of this API is Saturday, 7th of February 2009.
The above examples uses Sunday as the first day of week (can be specified in CalendarSettings >> FirstDayOfWeek property). If you specify other value for the first day of week, the result will be adjusted to the configuration. The date parameter should be datetime-typed input and the result will datetime-typed value as well.
- OnBeforeViewSwitched: will be invoked before the view is switched.
- OnAfterViewSwitched: will be invoked after the view is switched. For example: both events will be invoked when user switched from Month view to Week view. Three parameters will be passed to the event: controlId, previousViewMode, and nextViewMode.
- OnBackNavigation: will be invoked when back action is performed in either scheduler or calendar.
- OnForwardNavigation: will be invoked when forward action is performed in either scheduler or calendar.There are back and forward arrows in both scheduler and calendar. These events will be invoked when either one of the arrows is pressed. Five parameters will be passed to the event: controlId, viewMode, previousDate, nextDate, and isCalendarNavigation.