i have dropdown list:
> @(html.kendo().dropdownlist() > .name("labeldropdown") > .datatextfield("state") > .datavaluefield("id") > .optionlabel("select label") > .autobind(true) > .htmlattributes(new { @style = "width: 72px;font-size:12px; " }) > .datasource(source => > { > source.read(read => > { > read.action("bindstate", "controller"); > }); > }) > .selectedindex(0) > )
i have edit button. if click that, want populate selected value kendodropdown populate in , save changes dropdown list.
i believe you're asking how selected value dropdownlist
. if so, this:
$('#my-button').on('click', function(){ var dropdown = $('#my-dropdown').data('kendodropdownlist'); var selvalue = dropdown.value() }
Comments
Post a Comment