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

Radgrid ExtractValues

1 Answer 291 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Veteran
Iron
Andrew asked on 09 Apr 2012, 08:14 PM

hi I have a RadGrid bound to an openaccess data source on the radgrid

 

_UpdateCommand event I want to save the text value of a combobox not the selected value because we have allowcustomtext on the dropdown set to true

we are useing a "GridDropDownColumn" in the grid, have "radComboBox.AllowCustomText = true" in the Itemdatabound event, and now I am getting the value with "ExtractValues" method in the _UpdateCommand event

Hashtable values = new Hashtable();
gridEditableItem.ExtractValues(values);
values["School"] = radComboBox.Text;

 

I am just not sure how to get the orm to save the changed value?

I tried this but that did not work

gridEditableItem.UpdateValues(values);

what am I missing?

 

 


 

 

 

 

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Apr 2012, 08:15 AM
Hello Andrew,

I believe that the help article below will help you to achieve the desired functionality
http://www.telerik.com/help/aspnet-ajax/grid-updating-inplace-and-editforms.html

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Veteran
Iron
Answers by
Pavlina
Telerik team
Share this question
or