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.
New client side events
Per your request, we have added the following client side events.
- 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.
You can download the sample here
We also added new client side properties for a specific event which is explained in this blog
, and also enhancement in agenda details which is explained here
You can view other fixes in WebScheduler’s version history
in support site.
We received plenty of feedback lately. Some of them are already implemented as I have explained above. If you have any other feedback, feel free to submit it to email@example.com
. Good day, everybody !
In certain scenarios, you might want to prevent edit or delete action in an event only without modifying edit and delete action in other events globally. In this case, you can utilize specific properties provided in the events object to disable edit, delete, resize, and moving event.
Simply set those properties to True in OnEventBound client side events.
Prevent edit and delete in specific event
When you set DisableDelete to true, user will not be able to delete the specified event, either from callout or context menu.
Delete action is disabled for the specified event
The Delete Event button will also be removed from Agenda view. In the below screenshot, note that “Submit to printing” event do not have Delete Event button.
Delete for the specified event is disabled in Agenda view
When you set DisableEdit to true, user will not be able to open editing form for the specified event, either from callout or context menu, thus preventing user from editing the specified event. User will also be prevented from moving and resizing the event. In the following screenshot, note that the resizer and move indicator is removed from the event. The Edit Event button will also be removed from Agenda view.
Edit action is disabled for the specified event
In some cases, user is allowed to edit and move the event, but should be prevented from resizing the event. In this case, you can set DisableResize to true. User will still be able to open the editing form for the specified event and also move the event, but he is prevented from resizing the event. The Edit Event button in Agenda view will not be removed as well.
Resize action is disabled for the specified event
When you set DisableMove to true, user will still be able to open the editing form for the specified event and also resize the event, but he is prevented from moving the event. The Edit Event button in Agenda view will not be removed as well.
Move action is disabled for the specified event
The sample can be downloaded here
. WebScheduler.NET 2.0.1000 Build 214 above is needed to use this feature.
As you can see, the scheduler provides the same flexibility in global and specific event level for customizing the editing properties. Hope this feature will be a great use for everybody 🙂
Agenda view is different compared to the other views. The events are listed in detail of formatted text layout. However, until previous build of WebScheduler, the event details are limited to Location and Description only. Now, you can add other fields or even your own custom fields in the details section.
You need to create WebSchedulerAgendaContentDetail object for every detail that will be displayed, and add it to AgendaDetailsCollection array. The code can be implemented during window onload or page initialization in client side.
Add Agenda details code
As simple as that, and all the new details will be listed in the details section. Note that when AgendaDetailCollection is used, the default details (Location and Description) will not be added automatically. If you want these details to be listed as well, they need to be added to AgendaDetailsCollection array as well.
New Details added to Agenda view
You can download the sample here. WebScheduler.NET 2.0.1000 Build 214 or above is needed to use this feature. Hope this post is useful ^^
A new module for scheduling purpose, Team Calendar, has been added to TDN. You can simply open it from WebFishEye navigation (for browsers that has installed Silverlight 2.0 Beta 2) or from the shortcut.
Team Calendar in WebFishEye navigation
Team Calendar Shortcut
In Team Calendar, you can schedule your events and see Intersoft events, which are indicated by Dark Steel color.
Intersoft event in Team Calendar
You will not be able to edit or delete Intersoft events; however you can freely add, edit, and delete your private events. Events that you add in Team Calendar will be private to yourself and will not be viewable to public. In the future, the Team Calendar will be enhanced to support shared scheduling between developers in the same corporate id.
Add private event in Team Calendar
You can also add your own resources and categories. The resources and categories that are you add will be private to your own view, so the other users will not be able to view it.
Add private resource in Team Calendar
Happy scheduling! As usual, feel free to drop a comment 🙂