jQuery MiniUI

 找回密码
 立即注册
查看: 252|回复: 1

datagrid 中editor使用treeselect [复制链接]

Rank: 1

发表于 2020-9-28 17:37:30 |显示全部楼层
在datagrid中列editor使用treeselect 控件时,在datagrid setdata后,已有数据的列不能编辑,只可以在添加的空白列上编辑。
报错
Uncaught TypeError: p.indexOf is not a function
    at mini.DataTree.findRecords (nui-min.js:1)
    at mini.Tree.findNodes (nui-min.js:1)
    at mini.TreeSelect.findItems (nui-min.js:1)
    at mini.TreeSelect.getValue (nui-min.js:1)
    at mini.DataGrid._OnCellCommitEdit (nui-min.js:1)
    at mini.DataGrid.commitEdit (nui-min.js:1)
    at mini.DataGrid.b (nui-min.js:1)
    at mini.DataGrid._pushUpdateCallback (nui-min.js:1)
    at mini.DataGrid.beginEditCell (nui-min.js:1)
    at mini._Grid_Select.__OnGridCellClick (nui-min.js:1)





Rank: 8Rank: 8

发表于 2020-9-28 17:47:14 |显示全部楼层
检查数据,treeselect的值字段不要用数字

Archiver|普加软件

GMT+8, 2020-12-2 11:11 , Processed in 0.030709 second(s), 10 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部