Home Unanswered Active Tags New Question

How to lock certain events from being edited or removed

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

Asked by Ozzie (ICTNUT) 1 year ago.
Replies

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

How to make the Calendar events read-only

Comment posted by Dan Letecky 1 year 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
Comment posted by Ozzie (ICTNUT) 1 year ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java