This example demonstrates r.a.d.
grid's ViewState optimization and performance mechanism.
The DataSourcePersistenceMode property of GridTableView indicates where r.a.d.
grid will store its data and determines
how DataSource of the GridTableView will be persisted on postback. It has two settings:
- NoPersistence- DataSource (or generated html tables) data will not be stored in ViewState.
- ViewState - RadGrid stores data in the ViewState bag (this is the default value).
Note that some operations in r.a.d.
grid like data extraction through the ExtractValuesFromItem method, grouping,
hierarchical views expand/collapse, custom edit forms (WebUserControl and FormTemplate) or filtering
require that the DataSourcePersistenceMode is set to
ViewState.
You can find more tips about how to speed up the grid performance in the
Performance tips
and tricks chapter in the online documentation:
Performance tips and tricks