This is a migrated thread and some comments may be shown as answers.

Grid not returning data - Source Oracle

1 Answer 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 27 Feb 2013, 07:35 PM
Sorry if this is a basic question but I am very new to C# and even newer to Kendo UI.  I have a reporting tool where users select an Oracle table or view and the tool dynamically displays the data from that table/view in a grid.  This works fine using the ASP.Net grid however we would love to have the extra functionality that comes with Kendo.

Right now I have created the various component which I believe would render a static grid for one table.  However, every time I run the html file I get a Kendo grid, the grid spins like it is trying to pull data then I get a blank grid with zero records.  I'm sure I missing something, please help.

I am assuming that once I get the through the static definition I will be able to migrate to a dynamic model.

I have attached my files.

Thank you!  Rod

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 01 Mar 2013, 03:52 PM
Hello Rod,

The DataTable row collection cannot be serialized by the default serializer. You should either load a collection of strongly typed objects or convert the DataTable to a type that can be serialized(Dictionary is one option). Using JSON.NET instead of the default serializer is another options since it supports this out of the box.  
Also, you should either specify with the dataSource schema data option that the collection can be accessed through a field with name "Data" or return the data directly without the DataSourceResult.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Rod
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or