回复 1楼angry003的帖子
你可以通过allowAddNew为true添加新行(或是CollectionView的addNew方法添加一行),然后通过formatItem可以初始化文字。- grid.formatItem.addHandler(function(s, e) {
- if (e.panel == grid.cells) { // cells panel
- if (grid.rows[e.row].dataItem == null) { // no data: new row
- e.cell.textContent = "暂无数据";
- }
- }
复制代码
接口api参考:
http://wijmo.com/5/docs/topic/wi ... tionView.Class.html
http://wijmo.com/5/docs/topic/wijmo.grid.FlexGrid.Class.html |