This question is locked. New answers and comments are not allowed.
Hi there.
I'm trying to have the same generated content rendered with the page render, and when the grid is refreshed via ajax.
Battling a bit with the .Format() method.
Below works fine, I get my anchors.
What I need however is this:
How do I access other properties of my "x" object (such as .Id), as opposed to just {0}
Many thanks.
I'm trying to have the same generated content rendered with the page render, and when the grid is refreshed via ajax.
Battling a bit with the .Format() method.
Below works fine, I get my anchors.
| column.Bound(x => x.ServiceCode).Format( |
| Html.ActionLink("{0}", "MyAction") |
| ).Title("Id").Encoded(false); |
What I need however is this:
| column.Bound(x => x.ServiceCode).Format( |
| Html.ActionLink("{0}", "MyAction", new { id = x.Id }) |
| ).Title("Id").Encoded(false); |
How do I access other properties of my "x" object (such as .Id), as opposed to just {0}
Many thanks.