作成日: 2019/02/04 最終更新日: 2019/02/04
文書種別
使用方法
詳細
データの先頭に半角スペースが存在する場合でも、グリッド上ではこのスペースは表示されません。
この場合、先頭に半角スペースを含めて表示するには、itemFormatterプロパティを使用して下記のようなコードを実装してください。
◎サンプルコード(View)
この場合、先頭に半角スペースを含めて表示するには、itemFormatterプロパティを使用して下記のようなコードを実装してください。
◎サンプルコード(View)
<script>
function ItemFormatter(panel, r, c, cell) {
if (panel.cellType == 1 && !panel.grid.editRange) {
if (panel.getCellData(r, c).toString().charAt(0)==" " ) {
cell.innerHTML = " " + cell.innerText;
}
}
}
</script>
@(Html.C1().FlexGrid()
・・・
.ItemFormatter("ItemFormatter")
)
function ItemFormatter(panel, r, c, cell) {
if (panel.cellType == 1 && !panel.grid.editRange) {
if (panel.getCellData(r, c).toString().charAt(0)==" " ) {
cell.innerHTML = " " + cell.innerText;
}
}
}
</script>
@(Html.C1().FlexGrid()
・・・
.ItemFormatter("ItemFormatter")
)
旧文書番号
83614