I have a RadGrid Control on my WebPage with an editable column.
After edit this column and postback the request, inside the CSharp event
protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
// rg is the RadGrid
if (rg != null)
{
if (e.Argument == string.Empty)
{
rg.Rebind();
}
string[] editedItemIds = e.Argument.Split(':');
int i;
for (i = 0; i <= editedItemIds.Length - 2; i++)
{
try
{
Guid itemId = Guid.Parse(editedItemIds[i]);
//This is the row that give the problem
GridDataItem updatedItem = rg.MasterTableView.FindItemByKeyValue("ArticoloId", itemId);
UpdateValues(itemId, updatedItem);
}
catch
{
}
}
rg.Rebind();
}
}
As told before the rg.MasterTableView.Items collection is empty and so the method "FindItemByKeyValue" does not never return any value.
I follow your example at
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx
Your help will be much appreciated.
Thanks in advance.