1
我有一个复选框,应该在勾选时启用Kendo MVC DropdownList,并在未选中时启用diable DropdownList。但我做不到,有问题。你能建议我该如何解决这个问题。使用复选框禁用kendo mvc dropdownlist
<input type="checkbox" onclick="if (this.checked) { document.getElementById('ParentDeptDrp').disabled = true; } else { document.getElementById('ParentDeptDrp').disabled = false; }" />
Is Product/Service?
<br />
@(Html.Kendo().DropDownList()
.Name("ParentDeptDrp")
.DataTextField("DeptName")
.DataValueField("DeptName")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetParentDeptt", "Department");
})
.ServerFiltering(true);
})
.SelectedIndex(1)
//.Enable(false)
)
非常感谢你。 – 2015-02-24 07:21:45