Hi,
I am trying to retrieve the user input from a rad grid input form. For some reasons that I do not want to get into right now, I am using an external button to the grid to trigger the 'save' command. i.e. I am not using a command item.
In the external button event i have the following:
The values returned are always null. I have also tried using the itm.OwnerTableView.ExtractValuesFromItem method, but it also gives me nulls.
Any help would be appreciated.
I am trying to retrieve the user input from a rad grid input form. For some reasons that I do not want to get into right now, I am using an external button to the grid to trigger the 'save' command. i.e. I am not using a command item.
In the external button event i have the following:
void SaveButton_Click(object sender, EventArgs e) |
{ |
foreach (GridEditableItem itm in MasterJobSchedulesGrid.EditItems) |
{ |
Hashtable values = new Hashtable(); |
itm.ExtractValues(values); |
foreach (Parameter updateParam in MasterJobSchedulesDataSource.UpdateParameters) |
{ |
updateParam.DefaultValue = Convert.ToString(values[updateParam.Name]); |
} |
MasterJobSchedulesDataSource.Update(); |
itm.Edit = false; |
} |
MasterJobSchedulesGrid.Rebind(); |
} |
The values returned are always null. I have also tried using the itm.OwnerTableView.ExtractValuesFromItem method, but it also gives me nulls.
Any help would be appreciated.