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

[Solved] obtaining selected text from dropdown

2 Answers 203 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
M
Top achievements
Rank 1
M asked on 16 Mar 2012, 03:05 PM
Hi,
I am using telerik mvc3 controls in my mvc 3 project. I am very new to both mvc and telerik so please help me.

I have used the dropdown control and please let me know how do i get the selected value and selected text onChange of the selection.

I have used this
Html.Telerik().DropDownList()

 

.Name(

 

"MonthSelection")

 

.ClientEvents(events => events.OnChange(

 

"ComboBox_onChange"))

Please note that I am using dropdown and not combobox

Thanks & Kind regards,
m

 

2 Answers, 1 is accepted

Sort by
0
Accepted
william
Top achievements
Rank 1
answered on 16 Mar 2012, 04:52 PM
this is how you would get it for a combo

$("#Dropdown_Model").data("tComboBox").text()

I would imagine that for a dropdown you would replace tComboBox with tDropDownList
0
M
Top achievements
Rank 1
answered on 17 Mar 2012, 05:43 AM
Thank you that solved my problem. :)
Tags
ComboBox
Asked by
M
Top achievements
Rank 1
Answers by
william
Top achievements
Rank 1
M
Top achievements
Rank 1
Share this question
or