Performance problem
Performance problem
AndersMalmgren
Posts: 12Questions: 0Answers: 0
Our target platform is IE7 and data tables is really slow in that browser, only 30+ items in the table makes it slow. So we would like to add serer side paging of some of our grids, but for that to work I have to use JSON instead of DOM, the problem is that we have lots of html input fields with our tables, and I cant find a way to define how to render the table when using JSON, plus the name of each grid has to be correct for the MVC3 binder to be able to deserialize the formdata back to a ViewModel.. IS there away to use the DOM model, but with server side processing? I want to page, sort and filter from the server but use html data not JSON.. thanks
This discussion has been closed.
Replies
> I cant find a way to define how to render the table when using JSON
Have a look at this blog post: http://datatables.net/blog/Extended_data_source_options_with_DataTables
> I want to page, sort and filter from the server but use html data not JSON.. thanks
DataTables ultimately requires a Javascript object or array of data for data to be shown when using server-side processing - so if your server returned HTML, then just like XML, you would need to define a "transformation" function to convert the HTML into a Javascript array.
Allan