RadControls for ASP.NET AJAX
There are cases in which the user would like to retain the state for checkbox control inside
GridTemplateColumn on grid operation which requires rebinding.
In such situation you can use ViewState property on the page which
holds the grid to save the current checkbox selection. The alteration of this property should
be made in the OnCheckedChanged event handler of the respective checkbox.
The forthcoming sample presents how to retain the checkbox state in a hierarchical
grid after expand/collapse for further custom operations. There are separate
properties for each master/detail table.
The example below is optimized for ViewState minimization as these
properties are modified only when CheckBoxInstance.Checked is
Otherwise the row value is not added to the ViewState.
Similar actions could be performed for persistence of other controls state in GridTemplateColumn.