ITPub博客

首页 > IT职业 > IT生活 > jquery easyuior datebox问题

jquery easyuior datebox问题

IT生活 作者:flbwhx 时间:2021-09-09 09:52:31 0 删除 编辑

点击编辑日期框为空,并且日期控件不能弹出,同时日期的设置不能被获取,如下图

解决办法:

在页面中,加入

 // 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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-15

  • 博文量
    92
  • 访问量
    672