How can I get value from GridDropDownColumn ? in c# on Code behind
Could you please help ?
<
telerik:RadScriptManager
ID
=
"RadScriptManager"
runat
=
"server"
></
telerik:RadScriptManager
>
<!-- content start -->
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadGrid
ID
=
"RadGrid1"
Width
=
"97%"
AllowPaging
=
"True"
PageSize
=
"15"
runat
=
"server"
AllowSorting
=
"True"
OnCreateColumnEditor
=
"RadGrid1_CreateColumnEditor"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
OnDeleteCommand
=
"RadGrid1_DeleteCommand"
OnInsertCommand
=
"RadGrid1_InsertCommand"
OnItemDataBound
=
"RadGrid1_ItemDataBound"
AllowAutomaticDeletes
=
"True"
GridLines
=
"None"
Skin
=
"WebBlue"
AllowAutomaticInserts
=
"True"
>
<
MasterTableView
Width
=
"100%"
DataKeyNames
=
"DestinationId"
AutoGenerateColumns
=
"False"
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
UniqueName
=
"EditCommandColumn"
>
<
ItemStyle
CssClass
=
"MyImageButton"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridBoundColumn
DataField
=
"DestinationId"
HeaderText
=
"DestinationId"
SortExpression
=
"DestinationId"
UniqueName
=
"DestinationId"
ColumnEditorID
=
"GridTextBoxColumnEditor1"
ReadOnly
=
"false"
Visible
=
"true"
>
</
telerik:GridBoundColumn
>
<
telerik:GridDropDownColumn
DataField
=
"OriginCountryCode"
HeaderText
=
"Traveling From Country"
ListTextField
=
"CountryName"
ListValueField
=
"CountryCode"
UniqueName
=
"OriginCountryCode"
ColumnEditorID
=
"GridDropDownColumnEditor1"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridDropDownColumn
DataField
=
"DestinationCountryCode"
HeaderText
=
"Destination Country"
ListTextField
=
"CountryName"
ListValueField
=
"CountryCode"
UniqueName
=
"DestinationCountryCode"
ColumnEditorID
=
"GridDropDownColumnEditor1"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridDropDownColumn
DataField
=
"PurposeId"
HeaderText
=
"Purpose of Trip"
ListTextField
=
"Description"
ListValueField
=
"PurposeId"
UniqueName
=
"PurposeId"
ColumnEditorID
=
"GridDropDownColumnEditor1"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridDateTimeColumn
UniqueName
=
"DateOfArrival"
PickerType
=
"DatePicker"
HeaderText
=
"Date of Arrival"
DataField
=
"DateOfArrival"
>
<
ItemStyle
Width
=
"120px"
/>
</
telerik:GridDateTimeColumn
>
<
telerik:GridDateTimeColumn
UniqueName
=
"DateOfDeparture"
PickerType
=
"DatePicker"
HeaderText
=
"Date of Departure"
DataField
=
"DateOfDeparture"
>
<
ItemStyle
Width
=
"120px"
/>
</
telerik:GridDateTimeColumn
>
<
telerik:GridCheckBoxColumn
DataField
=
"MultiEntry"
HeaderText
=
"Multi Entry Visa ?"
SortExpression
=
"MultiEntry"
UniqueName
=
"MultiEntry"
>
<
ItemStyle
Width
=
"120px"
/>
</
telerik:GridCheckBoxColumn
>
<
telerik:GridButtonColumn
ConfirmText
=
"Delete this product?"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Delete"
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
Text
=
"Delete"
UniqueName
=
"DeleteColumn"
>
<
ItemStyle
HorizontalAlign
=
"Center"
CssClass
=
"MyImageButton"
/>
</
telerik:GridButtonColumn
>
</
Columns
>
<
EditFormSettings
ColumnNumber
=
"1"
CaptionDataField
=
"DestinationId"
CaptionFormatString
=
"Destination Info {0}"
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
></
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>