Our pure JavaScript Scheduler component


Post by hoangtruongdz96 »

When Drag, the event runs from the beginning of that month to the place where the event is dropped. Can someone help me with this problem?

Attachments
localhost_3000_scheduler - Google Chrome 2022-08-09 11-41-43.mp4
(19.35 MiB) Downloaded 24 times

Post by tasnim »

Hi,
Could you please provide the steps to reproduce it? Are you able to reproduce it in our online demos?

Please check our support policy How to ask for help?


Post by hoangtruongdz96 »

I use onAfterEventDrop and happen the above case,
and I want to ask more, how to disable tooltip when dragging and dropping?


Post by tasnim »

Could you please show you're code inside onAfterEventDrop

and I want to ask more, how to disable tooltip when dragging and dropping?

You need to check https://bryntum.com/docs/scheduler/api/Scheduler/feature/EventDrag#event-eventDrag event

Here is a simple code snippet of how you can achieve that :

    listeners : {
        eventDrag(event) {
            const { source } = event;
            source.features.eventDrag.tip.hide()
        }
    },

Post by hoangtruongdz96 »

    listeners : {
        eventDrag(event) {
            const { source } = event;
            source.features.eventDrag.tip.hide()
        }
    },

[/quote]

It runs right when:

  eventDrag: {
    constrainDragToTimeline: false,
   },

But I want constrainDragToTimeline: true, then it appears again tooltip


Post by hoangtruongdz96 »

Is there any way to disable tooltip when constrainDragToTimeline: true, ?


Post by hoangtruongdz96 »

config :

 features: {
    eventEdit: {
      disabled: true,
    },
    nonWorkingTime: {
      highlightWeekends: true,
    },
    timeRanges: true,
    cellMenu: false,
    tree: true,
    scheduleTooltip: false,
    eventTooltip: false,
    dependencies: {
      disabled: true,
    },
    resourceTimeRanges: {
      disabled: true,
    },
    scheduleMenu: false,
    eventDrag: {
      constrainDragToTimeline: true,
    },
    eventDragCreate: false,
    eventDragSelect: false,
  },
  

Post by hoangtruongdz96 »

Great that i found the class 'b-eventdrag-tooltip' and just add css is ok


Post by tasnim »

Glad to hear that. Good Luck :)


Post by dungngoviet »

Hi tasmin, i got same issues, when I drag & drop event then it back to start of month automatically. Here is my simple code
Note: I'm using license version, you should change to trial version in package.json to run development. Thanks!

Attachments
bryntum-demo.zip
(2.38 MiB) Downloaded 23 times

Post Reply