首页 > IT职业 > IT生活 > jquery easyuior datebox问题
点击编辑日期框为空,并且日期控件不能弹出,同时日期的设置不能被获取,如下图
解决办法:
在页面中,加入
// datagrid editor datebox 设置
$.extend($.fn.datagrid.defaults.editors, {
datebox: {
init: function(container, options){
var input = $('').appendTo(container);
input.datebox(options);
return input;
},
destroy: function(target){
$(target).datebox('destroy');
},
getValue: function(target){
return $(target).datebox('getValue');
},
setValue: function(target, value){
$(target).datebox('setValue', value);
},
resize: function(target, width){
$(target).datebox('resize', width);
}
}
});
搞定!!!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/933/viewspace-2813883/ ,如需转载,请注明出处,否则将追究法律责任。