Dearl Alice:
在我使用FlexGird控件的dispose?()方法的时候,我的jsp页面报错
我的调用方式如下
var addBookRoomFlexGrid = new wijmo.grid.FlexGrid('#div_bookRoom', {
autoGenerateColumns: false,
allowMerging : wijmo.grid.AllowMerging.All,
isReadOnly : false,
selectionMode : wijmo.grid.SelectionMode.Row,
allowAddNew:true,
columns: [
{ header: '主键',binding:"id", width:50,isReadOnly:true},
{ header: '序号', width:50,isReadOnly:true},
{ header: '房类',binding:"roomtypeId",width:'*' },
{ header: '订房数', binding:"bookNum",width:'*' },
{ header: '留房数', binding:"saveNum",width:'*'},
{ header: '抵店日期',binding:"reachDate", width:'*'},
{ header: '离店日期',binding:"leaveDate", width:'*'},
{ header: '抵店时间', width:'*'},
{ header: '房价',binding:"roomPrice", width:'*'},
{ header: '抵达数',binding:"reachNum", width:'*'},
{ header: '操作', binding:"buttons",width:'*'},
],
itemsSource: bookRoomview,
});
document.getElementById('btnEdit').addEventListener('click', function () {
addBookRoomFlexGrid .dispose?();
});
如果我调用方式有错误,请指出。 |