Within a RadGrid that uses the NeedDataSource method and using paging, there is a select all column. When the Header checkbox is selected, the items on the first page are selected only. How can I select all of the records within the RadGrid.
This is the code I have in place for selecting all dataitems:
This is the code I have in place for selecting all dataitems:
CheckBox headerCheckBox = (sender as CheckBox);
foreach (GridDataItem dataItem in this.radgridmailinglists.MasterTableView.Items)
{
(dataItem.FindControl("chxselectrow") as CheckBox).Checked = headerCheckBox.Checked;
dataItem.Selected = headerCheckBox.Checked;
}