http://www.telerik.com/community/code-library/aspnet-ajax/grid/radgrid-client-side-toggle-selection-with-server-side-persisting-of-the-selected-items-after-sorting-filtering-and-paging.aspx
In reference to this article.
After you click on the button and save the entries. Only the selected rows on the first page are still being displayed. The other rows are loss.
This is the issue:
In reference to this article.
After you click on the button and save the entries. Only the selected rows on the first page are still being displayed. The other rows are loss.
This is the issue:
void RadGrid1_PreRender(object sender, EventArgs e)
{
string IDs = string.Empty;
string rowIDs = string.Empty;
foreach (GridDataItem item in RadGrid1.MasterTableView.Items)--->
{
CheckBox checkBox = item["template"].FindControl("CheckBox1") as CheckBox;
if (checkBox.Checked)
{
IDs = IDs + item["LinkNumber"].Text + ",";
rowIDs = rowIDs + item.ClientID.ToString() + ",";
}
}
if (!string.IsNullOrEmpty(IDs))
{
IDs = IDs.Substring(0, IDs.LastIndexOf(","));
int rowCount = RadGrid1.PageSize;
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "setSelectedAfterPostback", "setSelectedAfterPostback('" + rowIDs + "', " + rowCount + ");", true);
Label1.Text = IDs;
}
}
Please let me when there is a fix.