作成日: 2016/10/11 最終更新日: 2016/10/11
文書種別
使用方法
詳細
FlexGridのOnClientFormatItemプロパティを使用して下記のようなコードを設定することにより、ヘッダー部分のみ中央揃えにできます。
◎サンプルコード(View)
◎サンプルコード(View)
<script type="text/javascript">
function formatItem(s, e) {
if (e.panel.cellType == wijmo.grid.CellType.ColumnHeader)
{
e.cell.style.textAlign = "center"
}
}
</script>
@(Html.C1().FlexGrid()
・・・
.OnClientFormatItem("formatItem")
)
function formatItem(s, e) {
if (e.panel.cellType == wijmo.grid.CellType.ColumnHeader)
{
e.cell.style.textAlign = "center"
}
}
</script>
@(Html.C1().FlexGrid()
・・・
.OnClientFormatItem("formatItem")
)
旧文書番号
81833