Print Page | Close Window

Cancel writing in a particular resource

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=4126
Printed Date: 27 September 2024 at 2:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Cancel writing in a particular resource
Posted By: WaaZ
Subject: Cancel writing in a particular resource
Date Posted: 03 May 2006 at 1:53pm

I have a series of resources and in each one a schedule of the same name.

I want to restrict a user from writing into the cells of one resource, of which I have the ID and the ID of the schedule it contains.

Whenever the user start typing, an event is added.. I do not want him to even be able to write on the calendar for those resources whose ID are in the "list of restricted resources".

What conditions can be used to execute the e.bCancelOperation=true   ?

Thanks

WaaZ




Replies:
Posted By: sserge
Date Posted: 04 May 2006 at 8:14am
See new object in calendar - CalendarViewGroup.
This object represents a resorce in view hierarchy:
CalendarControl
   CalendarView
     CalendarViewDay
       CalendarViewGroup
         CalendarViewEvent
If CalendarViewEvent is specified for your operation, use CalendarViewEvent.ViewGroup.
Then use CalendarViewGroup.MultipleResources to determine for which schedule this group is.
When Operation is xtpCalendarEO_InPlaceCreateEven the current selection should be used.
In the next version there will be also a ClendarView.Selection property.

--
WBR,
Serge




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net