This question is locked. New answers and comments are not allowed.
How does one set the selected item in a dropdownlist given the value of an item in the dropdownlist? I know I can do this given the index of a value, but I only have the value.
4 Answers, 1 is accepted
0
Hello Ron,
Regards,
Georgi Krustev
the Telerik team
You can use value() method:
var dropDownList = $('#DropDownList').data('tDropDownList');dropDownList.value('pass value');Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
shariq
Top achievements
Rank 1
answered on 19 Jan 2011, 02:12 AM
hello ,
I got the same issue but its working fine but when i click on the list to show its rebinding and not showing the changed item name.
please tell me how to do this . thanks
I got the same issue but its working fine but when i click on the list to show its rebinding and not showing the changed item name.
please tell me how to do this . thanks
0
Jeremy
Top achievements
Rank 1
answered on 27 Jul 2012, 08:37 PM
Georgi, Does that fire the OnChange event?
Thanks
Thanks
0
Hello Jeremy,
Kind regards,
Georgi Krustev
the Telerik team
value("value") method does not raise change event. If you need to trigger change event you just need to trigger it manually:
dropDownList.trigger("change");Georgi Krustev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.