Grid doesn't load local data

1 Answer 77 Views
Data Source Grid View
Sviluppo
Top achievements
Rank 1
Sviluppo asked on 14 Dec 2021, 05:08 PM

I am using Kendo UI for Jquery.

I have a grid and a local array as a datasource. The grid is showing, but the data inside is not.  

I searched aroud and I can't find what's wrong. 

Here is the code: Dojo UI

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 17 Dec 2021, 07:08 AM

Hello, Sviluppo,

Please move the dataSource declaration before the Grid initialization. When the widget is created, the code for the dataSource is not yet executed so there is no data for the Grid. Here is the modified example.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Data Source Grid View
Asked by
Sviluppo
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or