Our pure JavaScript Scheduler component


Post by manirajan s »

On right click of the events unassigned will open By clicking that how to remove that particular events in the store level?

We are using CRUD Manager to extract api data. Kindly help on onUnassignedData function to remove particular events from store and atlast we are triggering sync call

  eventMenuFeature={{
          items: {
            deleteEvent: false,
            editEvent: false,
            EventCopyPaste: false,
            unassignEvent: false,
            cutEvent: false,
            copyEvent: false,
            splitEvent: false,
            Unassigned: {
              text: 'Unassigned',
              icon: 'b-fa-trash b-fa-fw',
              onItem: onUnassignedData,
            },
          },
        }}
  

PFA image for your reference.

Unassigned (2).png
Unassigned (2).png (30.05 KiB) Viewed 115 times

Post by tasnim »

To remove an event on store level you could use this method https://bryntum.com/products/scheduler/docs/api/Scheduler/data/EventStore#function-remove or https://bryntum.com/products/scheduler/docs/api/Scheduler/model/EventModel#function-remove

scheduler.eventStore.remove(eventRecord);
// or 
eventRecord.remove();

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post Reply