This is the way to set datasource for kendo dropdowmlist and the way to enable or disable:
var ddl = $("#ddlBranch").data("kendoDropDownList");
//set datasource
ddl.setDataSource(re);
ddl.refresh();
//visible dropdown
ddl.wrapper.show();
$('#ddlBranch').parent().show();
//or hide
ddl.wrapper.hide();
//disable
ddl.enable(false);
//enable
ddl.enable(true);
Không có nhận xét nào:
Đăng nhận xét