DISCLAIMER: I am brand new to the Telerik ASP.NET AJAX toolkit. So my apologies if these are truly "newbie" questions.
Environment: ASP.NET 3.5, Windows 7, IE 8, ASP.NET, Telerik ASP.NET AJAX Q3 2009 SP3
I have a RadGrid with a number of columns.
I have successfully bound the RadGrid to a DataTable in the C# code behind. When the grid is displayed, the correct values are shown.
Note: I am using stored procedures to populate my source DataTable. In order to update the database properly, I have to manually execute multiple stored procedures. So, it's my understanding that I can't use "Automatic" mode for this RadGrid. (Am I correct on this?)
When I click the Edit link on one of the grid's row, the row is changed to allow me to enter new values. (FYI, I've used both in-place and EditForm editing.)
The problem is that once I click the Update link, the new values I typed in are not saved. (My plan is to get the new values typed in, and then manually update the database via the various stored procs.)
I added an UpdateCommand event handler, but when I look at e.Item, it gives me the the old value, not the new value.
Please advise...
Thanks,
Mitch
Environment: ASP.NET 3.5, Windows 7, IE 8, ASP.NET, Telerik ASP.NET AJAX Q3 2009 SP3
I have a RadGrid with a number of columns.
I have successfully bound the RadGrid to a DataTable in the C# code behind. When the grid is displayed, the correct values are shown.
Note: I am using stored procedures to populate my source DataTable. In order to update the database properly, I have to manually execute multiple stored procedures. So, it's my understanding that I can't use "Automatic" mode for this RadGrid. (Am I correct on this?)
When I click the Edit link on one of the grid's row, the row is changed to allow me to enter new values. (FYI, I've used both in-place and EditForm editing.)
The problem is that once I click the Update link, the new values I typed in are not saved. (My plan is to get the new values typed in, and then manually update the database via the various stored procs.)
I added an UpdateCommand event handler, but when I look at e.Item, it gives me the the old value, not the new value.
Please advise...
Thanks,
Mitch
protected void RadGridNextSteps_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
GridDataItem editItem = e.Item as GridDataItem; // found the row
TableCell cell = editItem["sDisplayText"]; // found the cell
TextBox txt = cell.Controls[0] as TextBox; // found the control
string itemValue = txt.Text; // found the control’s value
// Problem: itemValue is old value, not new value.
}