The Editor has an Encode option that when enabled allows Html tags to be submitted encoded.
This feature request is for a similar option in the Scheduler. A possible scenario could be an Editor nested in the Scheduler's custom editor. Currently the value of that field will be submitted not encoded regardless of the nested Editor's Encode option value. Having the option of enabling encoding of the values of the Scheduler fields would allow Html tags to be sent encoded.
This is in regards to my previous ticket #1426737. Your suggested solution did not work on closer look. The problem is that the event is turned off completely instead of only for a specific event.
Let me give you a practical example: I have a separate filter for the scheduler that allows me to look at the events for a specific resource. If someone else on a different computer now adds an event that is assigned to a different resource, it still shows up on my calendar. I want to suppress that event if it doesn't match the resource I selected in the filter. Using the taskHub.off('create') turns off the 'create' event completely (at least until the user refreshes the page). That way, new tasks added by someone for the selected resource won't show up.
I would like to subscribe to the events like this:
taskHub.client.update = onScheduleUpdate;
taskHub.client.create = onScheduleCreate;
And then in the function check if the filter applies to the task and if not, suppress it. I tried the 'preventDefault' method, but that also turns off the event completely.
if(e.AssignedResource != filter.AssignedResource)
e.preventDefault(); -- does not work, turns off this event completely
This is not an untypical requirement for a calendar, especially if there are hundreds of tasks and filtering is the only option to organize them in a legible way.
There has to be a way to achieve this, but I have spent already way too much time on this. I need your help.