作成日: 2018/09/21 最終更新日: 2018/09/21
文書種別
使用方法
詳細
列単位でIMEモードの設定値を切り替えるには、ItemFormatterプロパティを使用してイベントを実装し、activeEditorのスタイルに対してimeMode属性を指定してください。
これにより、セルが編集モードに入った時点でIMEモードが切り替わります。
※クイック編集時(非編集モード時)におけるIMEモードを同様に切り替えることはできません。
◎サンプルコード(View)
これにより、セルが編集モードに入った時点でIMEモードが切り替わります。
※クイック編集時(非編集モード時)におけるIMEモードを同様に切り替えることはできません。
◎サンプルコード(View)
<script>
function ItemFormatter(panel, r, c, cell) {
if (panel.cellType == 1 && panel.grid.editRange && panel.grid.activeEditor) {
if (c == 0) {
panel.grid.activeEditor.style.imeMode = "active";
}
if (c == 1) {
panel.grid.activeEditor.style.imeMode = "inactive";
}
}
}
</script>
@(Html.C1().FlexGrid()
・・・
.ItemFormatter("ItemFormatter")
)
function ItemFormatter(panel, r, c, cell) {
if (panel.cellType == 1 && panel.grid.editRange && panel.grid.activeEditor) {
if (c == 0) {
panel.grid.activeEditor.style.imeMode = "active";
}
if (c == 1) {
panel.grid.activeEditor.style.imeMode = "inactive";
}
}
}
</script>
@(Html.C1().FlexGrid()
・・・
.ItemFormatter("ItemFormatter")
)
旧文書番号
83255