Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reloading data does not restore task position #5336

Closed
marciogurka opened this issue Sep 29, 2022 · 1 comment
Closed

Reloading data does not restore task position #5336

marciogurka opened this issue Sep 29, 2022 · 1 comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium

Comments

@marciogurka
Copy link

Forum post

In the example attached, we have our basic demo Gantt with React and Typescript, where we have a button to reload the data into the Gantt, which is working correctly.

The wrong behavior (as you'll see in the video) is that when we change siblings' positions, even when we reload the data, the position is not being reset. If we change the parent or level (or any other data), the data reloading resets everything correctly.

Bryntum.Gantt.-.Basic.setup.with.TypeScript.React.-.29.September.2022.mp4

basic.zip

@marciogurka marciogurka added bug Something isn't working premium forum Issues from forum OEM OEM customer labels Sep 29, 2022
@marciogurka
Copy link
Author

For performance reasons, the React Gantt has the syncDataOnLoad config set to true by default, which will update the dataset and not replace it, if you set up that config to false it will replace correctly

project: {
            eventStore: {
                syncDataOnLoad : false,
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium
Projects
None yet
Development

No branches or pull requests

1 participant