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

how to get/set dropdownlistfor value in javasacript

1 Answer 41 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Randy Hompesch
Top achievements
Rank 1
Randy Hompesch asked on 25 Jul 2019, 11:58 AM

SInce the dropdownlistFor has no id, how to get/set value?

Thanks … Ed

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 26 Jul 2019, 03:10 PM
Hello Ed,

The id and name attributes of the ...For() helpers are taken from the name of the field they are editing, just like the standard editors do. Thus, you can use the model field name for accessing the Kendo widgets.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DropDownList
Asked by
Randy Hompesch
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or