Hi team,
How to update all resources or update partial resources, then get the raw resource data
I use 'this.scheduler.resourceStore.data=' and 'Object.assgin(this.scheduler, {resources})', but can't get raw resource data as same as scheduler show.
'this.scheduler.resourceStore.data' cannot update.
'records' always new
We alreay try many methods, such as "loadDataAsync", "add","removeAll", they all doesn't work.
They all 'records' are updated but 'data' is old.
We try to set 'useRawData' as true, and it also don't work.
init() {
this.scheduler = this.$refs.scheduler.instance;
},
getAllResouces() {
// How to get raw data as same as scheduler show
console.log(this.scheduler.resourceStore.data)
},
updateAllResources() {
// Previously has 10 data and id and name is different
// Now update
this.scheduler.resourceStore.data = [
{ id: "1", name: "Mike2" },
{ id: "2", name: "Linda2" },
{ id: "3", name: "Amit2" },
{ id: "4", name: "Angelo2" },
{ id: "5", name: "Emilia2" },
{ id: "6", name: "Gloria2" },
{ id: "7", name: "Hitomi2" },
{ id: "8", name: "Lisa2" },
]
console.log(this.scheduler.resourceStore.data) // before has 10 count, but now the same
},
updateOneResource() {
// we want to update raw data to update instead of 'records' to update. Because we want to need raw data as same as record show.
}
Many thanks,