Hello.
I am using full version of SchedulerPro & Gantt.
Version: 4.1.1
package.json
"@bryntum/gantt": "4.1.1",
"@bryntum/schedulerpro": "4.1.1",
// ...
"@angular/core": "11.2.11",
I am rendering SchedulerPro by creating instance and appendTo:
const schedulerInstance = new SchedulerPro({
appendTo: this.schedulerDiv.nativeElement,
columns: [
{
type: 'resourceInfo',
field: 'name',
text: resourceColumnName,
minWidth: 200,
showEventCount: true,
showImage: true,
showRole: true,
htmlEncode: false,
renderer: (cellInfo: any) => {
//...
}
}
],
features: {
eventEdit: false,
percentBar: false,
taskEdit: false,
resourceTimeRanges: true
},
rowHeight: 50,
readOnly: true,
});
this.schedulerInstance = schedulerInstance;
And while resourceTimeRanges feature is enabled, Scheduler is not rendering propertly with error in the console:
TypeError: Cannot set property resourceTimeRangeStore of [object Object] which has only a getter
at SchedulerPro.updateProject (gantt.module.js:130725)
at SchedulerPro.updateProject (gantt.module.js:151929)
at SchedulerPro.set (gantt.module.js:1881)
at SafeSubscriber.ganttService.getGanttForResources.subscribe.schedulerInstance.project [as _next] (gantt-chart.component.ts:191)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:183)
at SafeSubscriber.next (Subscriber.js:122)
at Subscriber._next (Subscriber.js:72)
at Subscriber.next (Subscriber.js:49)
at MapSubscriber._next (map.js:35)
at MapSubscriber.next (Subscriber.js:49)
I found similar problem on your git repo:
https://github.com/bryntum/support/issues/2521
I wrote there comment with another example.
I tried to creating own store, but it didn't resolve my problem.
Can you provide me a solution?
Greetings.