I am working with Infragistics35.WebUI.WebSchedule.v8.2. I am not seeing any good documentation on this on the Infragistics Web site. Does anyone have any sample code I could see? I am trying to create a week view of the calendar. One that "Admins" can edit and the rest of the users can only view. I would love to have a different dblclick event fire based on role, so that a read only version of the activity would show for non admins. Is that possible? I'm just using an access db on the site in the App_Data directory. I really just needed (I thought) an out of the box solution. Cheers.
There are samples with source code.
https://es.infragistics.com/samples/aspnet/schedule/overview
(I'm sorry that that is the 2010 Vol. 1 samples, we take down our older samples with each release; but in the WebSchedule section, everything above "Multiple Resources" (that was added in 9.2) is a sample that has existed since 2008 Vol. 2.)
You should be able to download the samples for 2008 Vol. 2 from the My Keys and Downloads section of our web site if you login with the member ID to which you have registered your product key. I'm not positive, but Samples may have been available in a separate download in 2008, such that it was possible for you to download the product only, and docs/samples separately. This had been done in an effort to reduce the large download sizes some users faced.
As far as having a read-only view and "roles," WebSchedule does not natively support these concepts. A read-only view would probably require some changes to selectively enable/disable controls and/or WebToolbar buttons on the WebSchedule AddAppointment form.
As far as the double click event, you are right that you can only specify one JavaScript function to be called. However, your JavaScript function could always conditionally switch between performing two different behaviors, one for Admins and another for non-Admins (how you would distinguish whether the LoggedOnUserName was an Admin or not would be application-defined.)
HTH,
I've been looking for a method to open a read only version of an activity, but can't find an obvious way. My goal is to have the data entry be for admins only (on a different page). And have a page for users to just see the events. Is there a way to get the double click event on the event to just open up a read only dialog?
I am using the WebSchedule on a public web site as a corporate calendar. The requirements are as follows:
1. The calendar events can only be added and modified by the administrator
2. Web site visitors can see the events and can see the reminders
3. When a visitor double-clicks on an event, a read-only view should appear (no Save button). It is preferred that this view appears in the same window as a floating DIV, not a popup. When a visitor double clicks on an empty spot, nothing happens.
Is any of it possible without making modifications to the component sources?
Also, what is the difference between Activity and Appointment?
mmorozov said: Also, what is the difference between Activity and Appointment?
Appointment extends Activity. Activity is the base class. Activity therefore has common properties for something you would want to schedule such as a start time and a duration.
Appointment adds a number of extra properties beyond what is required to describe an Activity, such as a Subject and a Description. Activity may in the future be inherited by other classes.
I've had some success with grabbing the ActivityUpdating and ActivityDeleting events in the page where the calendar view control is shown, and comparing the activity's resource to the current user; if they are not the same I cancel the event. I want to make it better by preventing the user from making these edits or deletes in the first place but this was good enough to hit that deadline LOL
protected void WebScheduleInfo1_ActivityUpdating(object sender, CancelableActivityEventArgs e) { InteractiveImpact.DAL.CustomObjects.Activity appt = CalendarBLL.GetActivity(e.Activity.Key); if (CurrentUser.ResourceName != appt.ResourceName) { e.Cancel = true; } // apply DST correction here before activity saved. e.Activity.StartDateTimeUtc = new Infragistics.WebUI.Shared.SmartDate(CalendarUtility.adjustActivityTime(TIMEZONE, e.Activity.StartDateTime.Value, e.Activity.StartDateTime.Value, false)); }