As a newcomer to both javascript and devextreme, I am currently navigating my way through. I successfully created a webpage that loads a json file, but I'm facing challenges implementing it using devextreme.
I have a dxDataGrid where I intend to display the data. The data is correctly displayed when using a .js file. Here is a snippet from my json file:
{
"user": [
{
"id": 0,
"name": "user0",
"mail": "example0@example.com",
"address": "examplestreet 0",
"zip": "12345",
"city": "examplecity",
"country": "examplecountry",
"dayOfBirth": "1990/01/01"
},
{
"id": 1,
"name": "user1",
"mail": "example1@example.com",
"address": "examplestreet 1",
"zip": "23456",
"city": "examplecity",
"country": "examplecountry",
"dayOfBirth": "1990/01/01"
},
{
"id": 2,
"name": "user2",
"mail": "example2@example.com",
"address": "examplestreet 2",
"zip": "34567",
"city": "examplecity",
"country": "examplecountry",
"dayOfBirth": "1990/01/01"
}
]
}
I have tried to load the json file using the following code. While the object is correctly displayed in Google Chrome's developer tools, I'm having trouble loading it into the dxDataGrid.
Thank you in advance for any guidance!