I think I need this logic in the Javascript on the client because these ‘read only’ events are sent to many ‘users’ calendars whose selection of ‘typeofevent’ are different.
Is it possible to use the event ‘readonly’ property to cause the ‘typeofevent’ field to be hidden / deleted ? (ie. for some events)
If so where would be the best place for this logic ?
Do your read-only events have some value in ‘typeofevent’ property?
What is displayed in lightbox? Simply first option in the list?
You can add another option in your ‘typeofevent’ list of options with empty value. Can be done on client or server sides. As your read-only events most likely don’t have value in that property empty one will be displayed.
Thanks what I was a little confused by was where the logic needs to go on the client side to set the typeofevent field to ‘empty’ for the readonly events.
Perhaps I have not quite understood the handling of the set of events once scheduler.load
is called.
If I need logic like
if (event.readonly == true)
{
// Do the eventtype setting
}
where should this be called from to look at all loaded events ?