Hello, we recently started working with dependenciesFeature in Bryntum Scheduler Pro ("@bryntum/schedulerpro": "5.6.9"). We currently save all the dependencies in the database, and the lag is not updated with the distance between the events (this is not an issue), while drag and drop events are already linked. For example, let's say we have the following situation:
events={[
{ resourceId: 1, id: '9C566138-A9E3-4E7D-8ED9-6D2F6FE524C5', name: 'Interview', startDate: '2018-05-06', endDate: '2018-05-07'},
{ resourceId: 2, id: 'CAE9068B-ABC4-448E-A5A8-B0038201FC20', name: 'Press meeting', startDate: '2018-05-10', endDate: '2018-05-11'}
]}
dependencies={[
{ id: 'FF76B74C-5198-4D8C-9F0B-BA3E3751C241', from: '9C566138-A9E3-4E7D-8ED9-6D2F6FE524C5', to: 'CAE9068B-ABC4-448E-A5A8-B0038201FC20', cls: 'dev-path', lag: 2, lagUnit: 'h', active: true, type: 2, fromSide: null, toSide: null }
]}
We expect that the events will fit from 2018-05-06 to 2018-05-07' and from '2018-05-10' to '2018-05-11'
<BryntumSchedulerPro
autoHeight={true}
startDate={new Date(2018, 4, 6)}
endDate={new Date(2018, 4, 13)}
columns={[
{ field: 'name', text: 'Name', width: 100 }
]}
resources={
[
{ id: 1, name: 'John Doe' },
{ id: 2, name: 'Jane Doe2' }
]
}
events={[
{ resourceId: 1, id: '9C566138-A9E3-4E7D-8ED9-6D2F6FE524C5', name: 'Interview', startDate: '2018-05-06', endDate: '2018-05-07'},
{ resourceId: 2, id: 'CAE9068B-ABC4-448E-A5A8-B0038201FC20', name: 'Press meeting', startDate: '2018-05-10', endDate: '2018-05-11'}
]}
features={{
dependencies: {
clickWidth: 15
},
dependencyEdit: {
disabled: false
}
}}
dependencies={[
{ id: 'FF76B74C-5198-4D8C-9F0B-BA3E3751C241', from: '9C566138-A9E3-4E7D-8ED9-6D2F6FE524C5', to: 'CAE9068B-ABC4-448E-A5A8-B0038201FC20', cls: 'dev-path', lag: 2, lagUnit: 'h', active: true, type: 2, fromSide: null, toSide: null }
]}
/>
Here is the result of the specified schedules, automaticallyScheduled one next to each other.
More than this, we also tried the same case on your latest version https://bit.ly/bryntumSchedulerLatest
And here is the result from the latest version:
For us, this is the perfect behavior, to prioritize the events start date and end date, and after that to place the dependencies without moving events on scheduler initial mount.
We would like to know if the same behavior (keep the events positions even if all the dependencies are active) can be achieved also in our version of Scheduler.