Thứ Năm, 25 tháng 6, 2015

Kendo Dropdownlist - Set datasource, disable, enable, visible, hide

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