Folks,
Using VS2010 with RadControls for ASP.NET AJAX Q2 2012 SP2. I am using below link (the 2nd Grid as a prototype).
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/commanditem/defaultcs.aspx
I would like to highlight last updated row when sorting is enabled. Below codes works (i.e. does highlight the last updated row in current page when sorting is not enabled prior to editing).
protected void RadGrid2_PreRender(object sender, EventArgs e)
{
if (rowindex > -1)
{
GridDataItem item = (GridDataItem)RadGrid2.Items[rowindex];
item.Selected = true;
rowindex = -1;
}
}
int rowindex = -1;
protected void RadGrid2_UpdateCommand(object sender, GridCommandEventArgs e)
{
GridEditFormItem editItem = (GridEditFormItem)e.Item;
rowindex = editItem.ItemIndex;
}
But lets see if sorting is enabled (i.e. in Contact Name) and if in edit form, I change the Contact Name from Ann Devon to Beann Devon, after update Beann Devon is not showing in current page ( I assume because sorting is enabled in column Contact Name). Please refer to attached.
Is there any way possible to highlight that updated row if sorting is enabled prior to edit? If not, how about disable sorting prior to edit, after update highlight the row and enable sorting or any other suggestions? My users may sort any column, change that column value and still would like to highlight that row after update.
Thanks for any help.
gc_0620