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

Wrong value of expanded when calling store toJSON method #7469

Closed
taauntik opened this issue Sep 11, 2023 · 6 comments
Closed

Wrong value of expanded when calling store toJSON method #7469

taauntik opened this issue Sep 11, 2023 · 6 comments
Assignees
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@taauntik
Copy link

Forum post

Hello,

I'm using this example: https://bryntum.com/products/scheduler/examples/tree/. I'm collapsing all gates in terminal A and do

window.scheduler.resourceStore.toJSON()

But in the JSON produced, expanded is set to true. Expected is false.

I have attached a screen shot.
Issue Tree.png

@taauntik taauntik added bug Something isn't working forum Issues from forum large-account Reported by large customer labels Sep 11, 2023
@Sisco21
Copy link

Sisco21 commented Sep 20, 2023

Do you have any news?

Can we triggered resourceStore commit when change expanded property?

@Sisco21
Copy link

Sisco21 commented Oct 10, 2023

II've trying with the new version 5.5.3 and the same issue.

@Sisco21
Copy link

Sisco21 commented Nov 17, 2023

Any news?

@Sisco21
Copy link

Sisco21 commented Nov 30, 2023

@taauntik do you have any informations about this bug?

@Sisco21
Copy link

Sisco21 commented Dec 4, 2023

@taauntik it's seems workong now but how to trigger resourceEventStore Change event?

@matsbryntse
Copy link
Member

Can we triggered resourceStore commit when change expanded property?

Sure, just define your expanded field with persist : true in your custom ResourceModel

@matsbryntse matsbryntse changed the title Decide how to handle node.expanded when persisting Wrong value of expanded when calling store toJSON method Jan 8, 2024
@matsbryntse matsbryntse self-assigned this Jan 8, 2024
@matsbryntse matsbryntse added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Jan 8, 2024
@matsbryntse matsbryntse added this to the 5.6.6 milestone Jan 9, 2024
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 large-account Reported by large customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

3 participants