I have a GridDropDownColumn and i insert ( in event RadGrid1_InsertCommand) selected value from GridDropDownColumn into a collection(here a llblgen collection-never mind this.) Each time i insert (so-called) the selected value, first item in GridDropDownColumn is inserted in code behind.
Here is how i get the selected value:
Thanks...
Here is how i get the selected value:
| //e here is GridCommandEventArgs e |
| GridEditableItem eeditedItem = e.Item as GridEditableItem; |
| Hashtable newnewValues = new Hashtable(); |
| //The GridTableView will fill the values from all editable columns in the hash |
| e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem); //here newValues always stores the first item from the GridDropDownColumn |
| <telerik:GridDropDownColumn DataField="HizmetId" DataSourceID="LLBLGenProDataSourceHizmet" |
| HeaderText="Hizmet Adı" ListTextField="HizmetAdi" ListValueField="HizmetId" |
| UniqueName="HizmetId" ColumnEditorID="GridDropDownColumnEditor1" > |
| <ItemStyle Width="400px"></ItemStyle> |
| </telerik:GridDropDownColumn> |
Thanks...