Hi,
Is it possible to ignore hours (use only days) for gantt? My tasks end up having a 1.9 duration but we'd like them to be per day.
Thank you,
Remy
Seems like you need the same functionality like here: viewtopic.php?f=52&t=16055
Set up viewPreset https://bryntum.com/docs/gantt/#Gantt/view/Gantt#config-viewPreset
with your config for https://bryntum.com/docs/gantt/#Scheduler/preset/ViewPreset#field-timeResolution
All the best,
Alex
All the best,
Alex
Please read docs here: https://bryntum.com/docs/gantt/#Gantt/view/Gantt#config-viewPreset
If you don't provide a full config of your viewPreset
, you need to specify base
property in your config, as example:
viewPreset : {
base : 'hourAndDay',
id : 'myHourAndDayPreset',
timeResolution : {
unit : "day",
increment : 1
},
[...]
All the best,
Alex
What version of the Gantt are you currently using? I tested it with our basic example in 4.0.3 using umd
build and it works to me with your config.
new Gantt({
appendTo : 'container',
project,
viewPreset : {
base : 'day',
id : 'ganttPreset',
timeResolution : {
unit : 'day',
increment : 1
}
},
[...]
});
Try to reproduce with our examples, please?
Btw, I see not enough closed braces in the end of your snippet. Cannot be sure, of course.
All best,
Alex
All the best,
Alex
The issue seemed to be the new ViewPreset which wasn't working. Using the object directly seems okay. However, if I drag a task and on the overlay, it gets to the next day. If I release the mouse click at this point, it shows me 5.9 days instead of the 6 expected (see screenshots)
On this screenshot, I'm dragging the task from the 20th to the 21st of september and Bryntum is showing me 21st
Here I released the mouse button at the same place it is on the first image but the duration is incorrect