This is a migrated thread and some comments may be shown as answers.

EditTemplate RadComboBox and DataValue persistence...

0 Answers 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 09 May 2012, 08:16 PM
I was basing some code off this example:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/comboingrid/defaultcs.aspx?product=grid 

I got all the complicated things to work, but when I go to insert I can't seem to figure out the selected RadComboBox items DataValueField value.

I noticed in the example that they are capturing it in "OnSelectedIndexChangedHandler" and storing it in a session variable. Later they use a Session param to SQL insert with a SQL Data source.

I'm using EF4 in 'Manual' mode, and I really don't want to store the value in a Session variable.

In my RadGrid InsertCommand handler, I do the standard:
GridEditableItem theItem = e.Item as GridEditableItem;
BusinessObject bo = ApplicationContext.Current.Entities.BusinessObject.CreateObject();
theItem.UpdateValues(bo);

Is there a better way to pass on a selected RadComboBox value to the hosting RadGrid row/item?
Any way to do it so that (GridEditableItem).UpdateValues or ExtractValues works?

Thanks,
Frank

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Frank
Top achievements
Rank 1
Share this question
or