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

Grid disappears (500 error) with large data source

1 Answer 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Trent
Top achievements
Rank 1
Trent asked on 25 Jul 2013, 07:46 AM
My app has a large list of data (only 1 column) and I have to show them all (no paging). With a small amount of data it works fine but when I have all the data in (around 260 items, not that many) the grid disappears from the page. Debugging shows a 500 error on the server. 

I have done the following testing:
- I tried the page on Chrome, IE and Opera. All give the same result.
- I replaced the grid with a treeview. Same result - with around 150 entries it's fine, with 260 it disappears (although in the case of the treeview it doesn't disappear completely, it leaves a message that the request failed and a button to retry.

How I'm getting the data:

@(Html.Kendo().Grid<Song>()
                      .Name("SongsGrid")
                      .Columns(columns =>
                          {
                              columns.Bound(o => o.Name);
                          })
                      .DataSource(dataSource => dataSource.Ajax().Read(read => read.Action("SongList", "Song")))
                      .Selectable()
                      .Events(events => events.Change("songSelected"))
                      )

and

@(Html.Kendo().TreeView().Name("treeviewSongs")
            .HtmlAttributes(new {@class="demo-section" })
            .DataTextField("Name")
            .DataSource(dataSource => dataSource.Read(read => read.Action("SongListForTreeview", "Song")
        )

What are my options?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 26 Jul 2013, 11:26 AM
Hello Trent,

Probably you are hitting the limits of the .NET Javascript serializer.

http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/troubleshooting#error-during-serialization-or-deserialization-using-the-json-javascriptserializer

http://stackoverflow.com/questions/10665820/how-to-load-huge-of-data-in-kendo-grid

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