I'll try to make this as brief as possible. I've got a ajaxified grid among many others in a radmulitpage and radtab. That's not the problem.
I have one grid bound to a collection. The EditFormType is AutoGenerated, and it's a popup. AllowAutoInsert/Update/Delete is turned off. I'm trying to handle all actions through the ItemCommand event, where I can just check the CommandName and do the appropriate actions. Through trial and error I've gotten most other commands to work, such as "Delete", "DeleteSelected", "Edit", etc...
The problem is with trying to access the new edit form fields on the "Update" and "UpdateEdited" commands. I don't allow mulit row edit. I've tried to cast every which way to get to these new form fields. I only can get the old values by doing this:
string newFirst = ((GridDataItem)RadGrid1.EditItems[0])["FirstName"].Text.Trim();
I use EditItems[0] because again I'm allowing only one row to be edited and I do validation anyway. This get's me the right row but it's the value before it's edited. What's the best way to access the edited form values. Can I get it through accessing the GridCommandEventArgs or the RadGrid instance? What's the easiest and best way?
Sorry to be longwinded... there's probably an easy explanation.
Thanks,
Brad
I have one grid bound to a collection. The EditFormType is AutoGenerated, and it's a popup. AllowAutoInsert/Update/Delete is turned off. I'm trying to handle all actions through the ItemCommand event, where I can just check the CommandName and do the appropriate actions. Through trial and error I've gotten most other commands to work, such as "Delete", "DeleteSelected", "Edit", etc...
The problem is with trying to access the new edit form fields on the "Update" and "UpdateEdited" commands. I don't allow mulit row edit. I've tried to cast every which way to get to these new form fields. I only can get the old values by doing this:
string newFirst = ((GridDataItem)RadGrid1.EditItems[0])["FirstName"].Text.Trim();
I use EditItems[0] because again I'm allowing only one row to be edited and I do validation anyway. This get's me the right row but it's the value before it's edited. What's the best way to access the edited form values. Can I get it through accessing the GridCommandEventArgs or the RadGrid instance? What's the easiest and best way?
Sorry to be longwinded... there's probably an easy explanation.
Thanks,
Brad