We need to optimize Viewstate within our grids for best performance. Since we are using NeedsDataSource it seemed we would not need to use Viewstate so we tried to disable viewstate on the grid.
However, we are using FilterTemplate on some of the grid columns. The FilterTemplate includes a RadComboBox loaded during grid ItemDataBound.
Upon client side selection of the filter RadComboBox, we postback to requery and rebind the grid. The grid is within an updatepanel.
This works, however, the RadComboBox within the FilterTemplate does not keep its state even if we set EnableViewState="true" and ViewStateMode="Enabled" on the RadComboBox.
In order to get the RadComboBox within the FilterTemplate to remember the selection, we have to set the entire grid EnableViewState="true" and ViewStateMode="Enabled".
Can we disable viewstate on the grid but still enable viewstate within the FilterTemplate?
Thanks...Bob Baldwin
Trabon Solutions
However, we are using FilterTemplate on some of the grid columns. The FilterTemplate includes a RadComboBox loaded during grid ItemDataBound.
Upon client side selection of the filter RadComboBox, we postback to requery and rebind the grid. The grid is within an updatepanel.
This works, however, the RadComboBox within the FilterTemplate does not keep its state even if we set EnableViewState="true" and ViewStateMode="Enabled" on the RadComboBox.
In order to get the RadComboBox within the FilterTemplate to remember the selection, we have to set the entire grid EnableViewState="true" and ViewStateMode="Enabled".
Can we disable viewstate on the grid but still enable viewstate within the FilterTemplate?
Thanks...Bob Baldwin
Trabon Solutions