Premium support for our pure JavaScript UI components


Post by edison.shi »

Hi,

I want to single update the data of the assignment after resizing or dragging to change the humanresource or time in scheduler.
So how can I capture the resize and drag done and the data then to do the upload function?
I know the updateUrl API, but it is not suit for our project.


Many thanks

Post by mats »

If you don't want to use our AjaxStore / CrudManager capabilities, please listen to store 'change' method and perform your own saving there. Docs: https://bryntum.com/docs/scheduler/#Common/data/Store#event-change

Post by edison.shi »

Can you kindly please give me some example code of how to add a listener for the store change. I'm using the extjsmordern demo. I have tried but failed.

Post by saki »

The easiest would probably be:
  1. go to https://bryntum.com/examples/scheduler/extjsmodern/
  2. type in the Chrome console:
    bryntum.query('scheduler').eventStore.on('change', (event)=>{console.log(event)})
    
  3. resize, drag, add or remove an event and watch the console output
In your code you can either install the listener the same way or use listeners config option on the event store.

Post by edison.shi »

Thank you, it works!

Post Reply