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

[Grid] Weird behaviour when setting store.data with syncDataOnLoad & grouping on #6911

Closed
eangelov opened this issue Jun 2, 2023 · 0 comments
Assignees
Labels
bug Something isn't working high-priority Urgent to have fixed resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@eangelov
Copy link

eangelov commented Jun 2, 2023

We start with the grouping example modify it a little so that syncDataOnLoad is on:

store: {
	data : DataGenerator.generateData(50)
	, syncDataOnLoad: true
}

Steps:

  1. Collapse all groups
  2. Open the console and set store.data
grid.store.data = [{
    "id": 1,
    "title": "Row 0",
    "name": "Don A Taylor",
    "firstName": "Don",
    "surName": "Taylor",
    "city": "Moscow",
    "team": "Paris Tigers",
    "age": 30,
    "food": "Salad",
    "color": "Black",
    "score": 880,
    "rank": 99,
    "start": "2019-02-05T22:00:00.000Z",
    "finish": "2019-02-20T22:00:00.000Z",
    "time": "2020-01-01T00:10:00.000Z",
    "percent": 13,
    "done": false,
    "rating": 2,
    "relatedTo": 3,
    "notes": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?"
}];

The result is that all the groups remain:
image

Now refresh the page and do the same as above except DO NOT collapse all groups before setting store.data and the result is that only 1 group remains
image

It seems that when setting store.data if the group is collapsed it is not updated property.

@matsbryntse matsbryntse added bug Something isn't working high-priority Urgent to have fixed labels Jun 2, 2023
@mazzafabio mazzafabio self-assigned this Jul 20, 2023
@mazzafabio mazzafabio added in progress ready for review Issue is fixed, the pull request is being reviewed labels Jul 21, 2023
@isglass isglass added resolved Fixed but not yet released (available in the nightly builds) and removed in progress ready for review Issue is fixed, the pull request is being reviewed labels Aug 10, 2023
@isglass isglass added this to the 5.5.1 milestone Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority Urgent to have fixed resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

4 participants