This question is locked. New answers and comments are not allowed.
I can't seem to figure out why the CellAction method will not execute. Here is the code:
In this instance I am just trying to hide the text within the cell, but I have also tried to change the color. It doesn't matter what I put there because the code never runs!
Any ideas?
| <%= Html.Telerik().Grid<TransactionViewModel>() |
| .Name("Transactions") |
| .Columns(col => |
| { |
| col.Add(c => c.TransactionDate).Width(160); |
| col.Add(c => c.TransactionType).Width(65); |
| col.Add(c => c.MerchantName).Width(100); |
| col.Add(c => c.Description); |
| col.Add(c => c.Amount).Width(65); |
| col.Add(c => c.TransactionResult).Width(70); |
| col.Add(c => c.MerchantResponse).Width(70); |
| }) |
| .CellAction(cell => |
| { |
| cell.HtmlAttributes["style"] = "display:none"; |
| }) |
| .Pageable() |
| .Sortable() |
| .Filterable() |
| .Ajax(ajax => ajax.Action("_AjaxTransactions", "CRM", new { oid = ViewData["FirstOrder"] })) |
| .BindTo((IEnumerable<TransactionViewModel>)ViewData["Transactions"]) |
| %> |
In this instance I am just trying to hide the text within the cell, but I have also tried to change the color. It doesn't matter what I put there because the code never runs!
Any ideas?