グリッドの列の値をまとめたい。TotalPrice
Footer.Template で問題なく動作します。
.Columns(col => col.Bound(o => o.TotalPrice)
.FooterTemplate(@<text>Sum: @item.Sum</text>))
.DataSource(dataSource => dataSource
.Server()
... )
でも私はしたい:
しかし、最初の行として、データ行の上にSumなどを含むこの行が必要です!! 組み込みの機能または安定した回避策のいずれかを使用して、これがどのように機能するかを知っている人はいますか。
試行錯誤:
HeaderTemplate を使用:
.Columns(col => col.Bound(o => o.TotalPrice)
.HeaderTemplate(@<text>Sum: @item.Sum</text>))
私は次のようになります:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1593: Delegate 'System.Action' does not take 1 arguments
Source Error:
Line 54: columns.Bound(o => o.TotalPrice).HeaderTemplate(@<text>Sum: @item.Sum</text>);