{
field: "description",
title: '<@spring.message "apiinfo.description"/>' + spanRed,
width: 120,
headerAttributes: {style: "text-align:center"},
editor: function (container, options) {
$('<input onkeypress="myEnter(event,this)" name="'+ options.field +'" />').appendTo(container).kendoMaskedTextBox({
change:function () {
alert(111);
options.model.set('description1111','1111');
}
});
}
},
{
field: "description1111",
title: '<@spring.message "apiinfo.description"/>' + spanRed,
width: 120,
headerAttributes: {style: "text-align:center"},
},
//监听enter,失去焦点,从而触发kendoMaskedTextBox的change事件
function myEnter(e,t) {
if(e.keyCode == 13){
t.blur();
}
}