Access/update Telerik RadGrid item values in code-behind before ODS event handler

Posted by Brent on Stack Overflow See other posts from Stack Overflow or by Brent
Published on 2010-06-15T03:45:51Z Indexed on 2010/06/15 3:52 UTC
Read the original article Hit count: 1610

Filed under:
|

Hi there,

I need to update some of the values of the item being edited in my code-behind based on some values in a custom Edit Form on our Rad Grid. Can I access the item (and update some values) from one of the Grid's event handlers? Currently I'm storing the values in temporary variables and then injecting the new values in the ObjectDataSource's Inserting/Updating event handlers, but it would be much nicer if I could do it all in one spot. (I can't do it all in the ObjectDataSource event handlers as I can't access the controls inside my Grid's Edit Form.)

I've been playing with the ExtractValues and UpdateValues methods of the GridEditableItem object, but I'm not having any luck.

Any tips would be greatly appreciated :)

© Stack Overflow or respective owner

Related posts about telerik

Related posts about radgrid