In my project, I'm working on creating a dynamic Kendo UI grid with columns that are dynamically generated. However, I'm encountering an issue where the data is not rendering properly onto the grid.
The backend of this project involves using ASP.NET Core webAPI to fetch and return both dynamic columns and their corresponding data.
To set up the grid, I referred to a helpful article which guided me through the process (link provided).
After making a successful API call, I have implemented certain logic in the onSuccess event:
onSuccess: function (readings) {
// Logic for processing data here
}
I have also included some additional functions in the code snippet above for handling specific scenarios such as formatting dates and generating the model for the grid.
Furthermore, the dataset retrieved from the webAPI contains information structured similarly to the examples shown above.
However, while testing the implementation, I encountered an error message related to unexpected tokens. This occurred even after attempting to modify the data source configuration within the script.
// Sample code snippet resulting in syntax error
dataSource: {
//schema: {
// model: model
//},
data: readings,
pageSize: 20
},