$.ajax({
url: '../../../../Function/Instance/Common/PartyBiz.asmx/GetOrgList',
type: 'POST',
data: { OrgType:1 },
dataType: 'html',
async: false,
success: function (res) {
var data = eval('(' + res + ')');
tree= $("#txtDW").ligerComboBox({
width: 180,
selectBoxWidth: 220,
selectBoxHeight: 200, textField : 'text',valueField :'id',treeLeafOnly:false,
tree: { data: data.Org,
idFieldName :'id',
parentIDFieldName :'pid',
checkbox : false
}
});
// $("#txtDW").ligerComboBox({
// onBeforeOpen: f_selectContact,width:150
url: '../../../../Function/Instance/Common/PartyBiz.asmx/GetOrgList',
type: 'POST',
data: { OrgType:1 },
dataType: 'html',
async: false,
success: function (res) {
var data = eval('(' + res + ')');
tree= $("#txtDW").ligerComboBox({
width: 180,
selectBoxWidth: 220,
selectBoxHeight: 200, textField : 'text',valueField :'id',treeLeafOnly:false,
tree: { data: data.Org,
idFieldName :'id',
parentIDFieldName :'pid',
checkbox : false
}
});
// $("#txtDW").ligerComboBox({
// onBeforeOpen: f_selectContact,width:150
});
注:此法下拉树不可折叠!!
法2:注释内容,事件绑定,在新窗口选择树,再返回内容