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

Nested data for Tree data #7969

Open
sachh185 opened this issue May 15, 2024 · 0 comments
Open

Nested data for Tree data #7969

sachh185 opened this issue May 15, 2024 · 0 comments

Comments

@sachh185
Copy link

sachh185 commented May 15, 2024

I'm submitting a ... (check one with "x")

[] bug report => see 'Providing a Reproducible Scenario'
[] feature request => do not use Github for feature requests, see 'Customers of AG Grid'
[x] support request => see 'Requesting Community Support'

Hello,
I have a data structure like this:

const rowData = [
  {
    location: "United States",
    gold: 200,
    silver: 100,
    children: [
      {
        location: "New York",
        gold: 80,
        silver: 40,
      },
      {
        location: "Chicago",
        gold: 120,
        silver: 60,
      },
    ],
  },
  {
    location: "Australia",
    gold: 150,
    silver: 80,
    children: [
      {
        location: "Sydney",
        gold: 100,
        silver: 60,
      },
      {
        location: "Melbourne",
        gold: 50,
        silver: 20,
      },
    ],
  },
];

Is this supported by tree data in ag-grid? Or does it only support flat arrays?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants