We currently are using an Infragistics WebGrid to display some data that is allowed to be sorted on and filtered on. This functionality is all set to be done on the client side. The load of just the Grid control itself is around 128kb.
When taking the sorting and filtering functionality out of it the grid the load is still 110kb. We are only returning 25 txns from our db to bind to the grid. We are doing custom paging and still that grid is that large of a load. Can anyone explain to me why the load is so large for the WebGrid?
Any recommendations to lighten the load of this grid? We'd really like to use the WebGrid but I am almost thinking of using an asp.net gridview and implement the sort and filter functionality myself.
It really depends on your requirements/needs. If the largest problem is the size of the ViewState, you can disable grid ViewState (EnableViewState = False) and rebind it on each subsequent hit to the page. This can be done in the InitializeDataSource event.
I believe the best place to get started on performance and optimization is the online samples site located here:
http://samples.infragistics.com/2008.1/webfeaturebrowser/
and especially the Grid -> Optimizing Performance section. There are several examples with full source code which show some best-practices.
Also, you can check out our online help describing optimizing performance in general
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/WebGrid_Performance.html
Hope this helps.