作成日: 2021/09/27 最終更新日: 2021/09/27
文書種別
制限事項
状況
回避方法あり
詳細
列editorプロパティにMultiSelectを設定して複数の項目を選択してから表示すると、「[object Object] …」と表示されます。
回避方法
formatItemイベントを利用し、対象の列の表示(テキスト)を変更します。
flexGrid.formatItem.addHandler((s,e)=>{
let cellData = s.getCellData(e.row,e.col)
if(e.panel.cellType == wijmo.grid.CellType.Cell && s.getColumn('classes').index == e.col && cellData != undefined){
let filteredCellData = cellData.map(value => value.classNameShort);
e.cell.lastChild.textContent = filteredCellData.join(",")
}
})