Performance problem

Performance problem

AndersMalmgrenAndersMalmgren Posts: 12Questions: 0Answers: 0
edited February 2012 in General
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

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    IE7 should be able to cope with 30 rows no problem. 1000-2000 rows is about the tripping point to switch to server-side processing with IE7. How many columns do you have? That has an effete as well. An how much processing per line?

    > 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
This discussion has been closed.