combotree 多选赋值

来源:互联网 发布:linux定时任务每15分钟 编辑:程序博客网 时间:2024/05/16 09:38
jQuery.extend(jQuery.fn.datagrid.defaults.editors, {        combotree: {            init: function(container, options){                var editor = jQuery('<input type="text">').appendTo(container);                editor.combotree(options);                return editor;            },            destroy: function(target){                jQuery(target).combotree('destroy');            },            getValue: function(target){                var temp = jQuery(target).combotree('getValues');                //alert(temp);                return temp.join(',');            },            setValue: function(target, value){                var temp = value.split(',');                //alert(temp);                jQuery(target).combotree('setValues', temp);            },            resize: function(target, width){                jQuery(target).combotree('resize', width);            }    }});

0 0