Hi,
I use ajaxified grid and I want to implement Batch Updates and Insertions from code behind. I have GridDropDown columns and GridDateTime Column. But, when I try to obtain the updated values it only renders "null". It does not update with new values, old values are still displayed.
Here is my code:
I use ajaxified grid and I want to implement Batch Updates and Insertions from code behind. I have GridDropDown columns and GridDateTime Column. But, when I try to obtain the updated values it only renders "null". It does not update with new values, old values are still displayed.
Here is my code:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "UpdateAll")
{
foreach (GridEditableItem editedItem in RadGrid1.EditItems)
{
Hashtable newValues = new Hashtable();
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
int usr_id = int.Parse(newValues["usr_id"].ToString());
int sys_id = int.Parse(newValues["sys_id"].ToString());
int role_id = int.Parse((editedItem["role_id"].Controls[0] as DropDownList).SelectedItem.Value.ToString());
}
}
}
Please help..
Thanks,
RKS