How to lock certain events from being edited or removed
Asked by Ozzie (ICTNUT) 16 years ago.
Hi all,
I have just purchased this really cool control and am really happy with it however i Have this question...
due to the way that I wish to implement the calendar I would like different memebers of staff to be able to add events however I would like on those events added by a staff member to be editied or removed by that staff memebr only all ather staff should see a read only version of the entry.
Thanks for the KB Article however I solved this problem in the folowing way:
In our case the userID is held in a local cookie so we go ahead and extract it into a private variable called uID then in the DayPilotCalendar1_BeforeEventRender section we have the following:
If e.Tag("tasksstaffid") <> uID Then
e.EventClickEnabled = False
e.EventMoveEnabled = False
e.EventResizeEnabled = False
e.EventDeleteEnabled = False
e.EventRightClickEnabled = False
e.BackgroundColor = "#999999"
e.InnerHTML = e.InnerHTML
End If
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.