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

How to get Value of ComboBox OnSelectedValueChanged Event Used in GridView

1 Answer 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sakthivel
Top achievements
Rank 1
Sakthivel asked on 03 Mar 2008, 04:41 AM
I have a ComboBox in my GridView. I have to fill it dynamically on form load. How can i get the Value of ComboBox on SelectedIndexChanged/SelectedValueChanged. Please post it some example.

Regards,
Sakthivel 

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 05 Mar 2008, 04:08 PM
Hi Sakthivel,

In your other post, in your code you have presented your way to attach to SelectedValue event of the  RadComboBox, which is wrapped in the editor. You could use this event handler to get the currently selected value in the combobox element like this:

    Dim index As Int DirectCast(ComboEditor.HostedControl, RadComboBox).SelectedIndex
    Dim value As Object DirectCast(ComboEditor.HostedControl, RadComboBox).SelectedValue

I hope this helps. If you have any additional questions, please contact me.

Kind regards,
Georgi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Sakthivel
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or