Hello,
there is a way in scheduler to refresh only the resources?
I have following problem:
- in eventRender, dependently from a state of the appointments I want to set the Name of resource where this appointment is scheduled.
I do it using following code snippet:
function ManageRoomVisibility(locklevel, or_ID_involved) {
debugger;
var scheduleObj = document.querySelector('.e-schedule').ej2_instances[0];
var involvedRoom = scheduleObj.resources[1].dataSource.find(function (p) { return p.or_ID == or_ID_involved });
if (locklevel < 3) {
involvedRoom.roomName = '****';
}
else {
involvedRoom.roomName = involvedRoom.or_ShortName;
}
}
but now I have to refresh the scheduler to show the name changed.
ManageRoomVisibility was called in Eventrendered, so if I refresh all scehdule eventRendered event is fired again, and there is an infinite loop.