search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to lock certain events from being edited or removed

Asked by Ozzie (ICTNUT)
14 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.

Is this possible?

Thanks in advance.

Regards,

Ozzie

Comment posted by Dan Letecky
14 years ago.

I've just added a KB article with a short guide:

How to make the Calendar events read-only

Comment posted by Ozzie (ICTNUT)
14 years ago.

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 months old and has been closed. Please create a new question if you have anything to add.