在datagrid中问我们进入行编辑模式的时候,我们想 在里面加日期和时间的时候
$.extend($dategrid_time_editors,{
datatimebox:{
init : function(container,options){
var editor=$('<input/>').appendTo(container);
options.editable=false;
editor.datatimebox(options);
return editor;
},
getValue:function(target){
return $(target).datatimebox('getValue');
},
setValue :function(target,value){
$(target).datatimebox('setValue',value);
},
resize : function(target,width){
$(target).datatimebox('resize',width);
}
destroy : function(target){
$(target).datatimebox('destroy');
}
}
});
datagrd中的信息置空
$('#datagrids').datagrid('loadData',[]);