Dynamically add days to Gantt scheduler when scrollbar ends

Discuss issues related to v5.x
Post Reply
User avatar
thomas.rygaloff
Posts: 44
Joined: Thu Mar 15, 2018 3:05 pm

Dynamically add days to Gantt scheduler when scrollbar ends

Post by thomas.rygaloff » Wed Aug 22, 2018 10:15 am

Hi,

Could you provide a way to dynamically add days to Gantt scheduling view when scrollbar reaches the end of it, and if yes without loosing task control (like drag&drop or resizing)?

I have tried to call setEndDate(), it works fine and append days to scheduling view but in this case I loose control over Gantt task manipulation.

For example, when I drag a task on the right edge of the screen, I trigger an horizontal autoscroll (using getSchedulingView().scrollTo()), and when I reach the end of the scheduling view, i call setEndDate(date + 7) which append 7 days to scheduler and then loose drag control.

Thanks

User avatar
Maxim Gorkovsky
Core Developer
Core Developer
Posts: 2877
Joined: Wed Jan 08, 2014 11:46 am

Re: Dynamically add days to Gantt scheduler when scrollbar e

Post by Maxim Gorkovsky » Wed Aug 22, 2018 10:52 am

Hello.

We have a config that already does that. See zooming demo, top panel has infiniteScroll set to true.
Also task dragdrop should not stop in that case. It works in scheduler, but doesn't work in gantt. I opened ticket: https://app.assembla.com/spaces/bryntum/tickets/6649
Thank you for report!

User avatar
thomas.rygaloff
Posts: 44
Joined: Thu Mar 15, 2018 3:05 pm

Re: Dynamically add days to Gantt scheduler when scrollbar e

Post by thomas.rygaloff » Wed Aug 22, 2018 11:29 am

Thank you Maxim.

Btw we do not use infiniteScroll because we must prevent scrolling on left side.

Also, it could be useful to use bufferCoef as a number of day to add instead of a proportional width.

User avatar
thomas.rygaloff
Posts: 44
Joined: Thu Mar 15, 2018 3:05 pm

Re: Dynamically add days to Gantt scheduler when scrollbar ends

Post by thomas.rygaloff » Tue Mar 26, 2019 4:04 pm

Hi,

Do you know the progress of this ticket?

Thanks a lot.

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2372
Joined: Fri Apr 01, 2016 11:08 am

Re: Dynamically add days to Gantt scheduler when scrollbar ends

Post by pmiklashevich » Tue Mar 26, 2019 4:17 pm

Hello Thomas,

I see the status is "New" and it's reported for 5.x version. What version of Gantt are you using? Can you reproduce this issue with the latest 6.0.8 release?

Also I see the ticket is about infiniteScroll but you said you don't use infiniteScroll. So could you please describe detailed steps of how I can reproduce your case with one of our samples? I'll update the ticket and/or create a new one.

Thanks,
Pavel
Pavel Miklashevich - Core Developer

User avatar
thomas.rygaloff
Posts: 44
Joined: Thu Mar 15, 2018 3:05 pm

Re: Dynamically add days to Gantt scheduler when scrollbar ends

Post by thomas.rygaloff » Wed Sep 18, 2019 10:40 am

Hi Pavel,

We still can reproduce the issue with the last version (6.0.13).
This is not necessarily caused by the autoscroll itself, but by any scroll triggered on the view. Thus using the autoscroll will cause this issue too.

Is there any update about it ?

Thanks

User avatar
saki
Core Developer
Core Developer
Posts: 179
Joined: Thu Mar 30, 2017 9:32 am

Re: Dynamically add days to Gantt scheduler when scrollbar ends

Post by saki » Wed Sep 18, 2019 1:37 pm

Could you give us the exact steps to reproduce in one of our examples?

User avatar
thomas.rygaloff
Posts: 44
Joined: Thu Mar 15, 2018 3:05 pm

Re: Dynamically add days to Gantt scheduler when scrollbar ends

Post by thomas.rygaloff » Tue Oct 29, 2019 4:56 pm

You simply need to set Gantt config

Code: Select all

infiniteScroll: true
Then drad&drop a task to the right edge until you reach the end of the panel view. In this case, you should loose the task being drag&dropped.

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2372
Joined: Fri Apr 01, 2016 11:08 am

Re: Dynamically add days to Gantt scheduler when scrollbar ends

Post by pmiklashevich » Tue Nov 05, 2019 10:01 am

Pavel Miklashevich - Core Developer

Post Reply