画像のようなアイコンを持つ複数のアクション リンクを含む列をグリッドに追加したいと考えています。また、リンクの可視性はプロパティ値に依存します。
どうすればいいですか?
次のようなテンプレート列を使用します。
cols.Add("Actions").WithSorting(false)
.WithHeaderText("َActions")
.WithHtmlEncoding(false)
.WithValueTemplate("<a href='{ControllerName}/{Action}/{Model.Id}' title='View'><i class='fa fa-eye'></i></a> | <a href='{ControllerName}/{Action}/{Model.Id}' title='Edit'><i class='fa fa-edit'></i></a> | <a href='{ControllerName}/{Action}/{Model.Id}' title='delete'><i class='fa fa-times'></i></a>");