Hi all,
I had a quick question regarding the RadGrid paging. I currently have a VirtualItemCount that I set when the grid is loaded. The user can delete rows from the grid by selecting a series of checkboxes and clicking on a delete button. I have been able to reload the grid and also reset the page index to 0. The problem is that that total number of items is still the old number. If I page forward, the item count is refreshed with the correct count.
RadGrid1.DataSource = data.LawFirm_GetBrokerRelationships(lawFirmID, RadGrid1.PageSize, pageIndex).ToList();
if (rebind)
{
RadGrid1.CurrentPageIndex = 0;
RadGrid1.Rebind();
}
int rowCount = data.LawFirm_GetBrokerRelationships(lawFirmID, null, null).FirstOrDefault().BrokerRelCount;
RadGrid1.VirtualItemCount = rowCount;
Any idea what I may doing wrong?
Thanks,
Jennifer