Our pure JavaScript Scheduler component


Post by Aniket »

Hi Team,

I have implemented the rowreorderfeature to interchange the rows and the events on them.

My query is does the resourceid gets changed when I move a resource from 2nd position to 1st?


Post by mats »

'resourceId' is not a property of the row. It's a property of the event. If you move a resource row, its events will still be associated with the same row as you would expect.


Post by Aniket »

understood, but when I reorder a row? does any change happen in the model of data? similar to drag drop operation?


Post by mats »

Just the internal index field is updated.


Post by Aniket »

Mats,

Will I able to post this change to the backend using crudmanager?

I want user to reorder a row and save so that backend can be updated and changes are saved?

If yes any snippet or reference
?


Post by mats »

Yes of course, just save parentIndex field and return tasks sorted by this in your load requests.


Post by Aniket »

so u mean , the same load request which populate the data for me shall be able to show the changes post sync operatuion from crudmanager?


Post by mats »

Sorry, I don't understand your question. Have you tried saving the parentIndex task field and returning it in your load responses?


Post by Aniket »

Mats, I want to design my backend logic to receive the updated changes, for that I need to know what kind of data will be sent back from the scheduler or the updated json object.

Where can I get that information?


Post by mats »

Please read Working with data guide in docs: https://bryntum.com/docs/scheduler/

The fields of the ResourceModel can be found here: https://bryntum.com/docs/scheduler/#Scheduler/model/ResourceModel


Post Reply