Hi,
I am new to Infragistics webschedule V2010 vol3.
In my project there is an requirement super user will provide there availabilities and then based on there availabilities sub users need to schedule recurring appointment. I am aware that using infragistics we can schedule recurring appointment however could you please brief on how to achieve recurring appointments based on availability? It would great if you provide some sample code.
Thanks in advance!!
Hello,
Thank you for posting in our forum.
There’s two ways that you can modify or cancel an activity.
On the server side you can handle the web schedule’s ActivityAdding event. In it you can get the activity object (e.Activity) that is currently getting added and based on it you can cancel the event with:
e.Cancel = true;
You can also modify the activity if you wish. So in your scenario you can check the activities’ recurrence object and if it doesn’t match the availability of the super users cancel the event and display a message to the user or modify the recurrence to match the availability.
On the client side you can also cancel the activity and prevent it from getting committed . You can handle the WebSheduleIndo’s ActivityDialogEdit and ActivityDialogUpdating client side events and in a similar way access the activity’s properties and cancel the event when needed. This is explained with code samples here:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebSchedule_Limiting_Appointment_Dates_and_Times.html
Let me know if you have any questions regarding this.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support