Our blazing fast Grid component built with pure JavaScript


Post by Samith »

Hi,
We are based on your drag between two scheduler example. (https://www.bryntum.com/examples/scheduler/react/javascript/drag-between-schedulers/build/index.html)

We are working on a feature in which the users can choose whether they use independent scrolling between partner two schedulers or synchronize scrolling between two schedulers.

I know I can disable scroll synchronization by removing the "partner" property in the config.

partner1.PNG
partner1.PNG (11.32 KiB) Viewed 1113 times

How do I add/remove partners from the config ? (scheduler.config.partner = 'unallocated-work-grid' wont work)

I know there is a method to add scroll partner
(addPartner() https://www.bryntum.com/docs/scheduler/#Core/helper/util/Scroller#function-addPartner )

But to use this method, we need to pass the other grid instance.
How do we access one grid instance from the other grid?

best regards!


Post by alex.l »

Hi Samith,

addPartner in Scroller won't do the job, because when you define partner on a scheduler level (https://bryntum.com/docs/scheduler/#Scheduler/view/TimelineBase#config-partner), it makes much more than just scroll sync. We do not have a public API to make it, and I figured out that our private methods also need to be fixed, so there is no workaround for now, I've created a ticket here: https://github.com/bryntum/support/issues/2042

All the best,
Alex

All the best,
Alex


Post by Samith »

Hi Alex,
Just found out removePartner() wont do the job. When I can get the fix?

ezgif.com-gif-maker (3).gif
ezgif.com-gif-maker (3).gif (2.69 MiB) Viewed 1066 times

best regards,
Samith


Post by mats »

As you can see above, it's a bug and it's almost completed so please wait until next patch release.


Post Reply