I am using datatables.net and rendering a button. It works perfectly if I hand craft the element, but I want to use the razor helper class here. The first example below, returns an error about too many characters in character literal on the ' before + full.id.
The second, states full does not exist in the current context, I am not sure how to access the function parameter inside a C# helper? I need to use Page Model parameters and the specific value from the row the button is on.
I have spend hours doing various combinations, and can't get it to work.
"render": function (data, type, full, meta) { return = '@Html.ActionLink("Create Breach", "SaleRedirect", "Admin", new { SchemeId=Model.SchemeId, Currency=Model.Currency, AgencyRef=Model.AgencyRef, ClientNo=Model.ClientNo, BasePolicyTransactionNo = Model.PolicyTransactionNo, PolicyTransactionCoverageId=' + full.id + '}, new { area="", @class = "btn btn-primary" }) '
"render": function (data, type, full, meta) {return '@Html.ActionLink("Create Breach", "SaleRedirect", "Admin", new { SchemeId=Model.SchemeId, Currency=Model.Currency, AgencyRef=Model.AgencyRef, ClientNo=Model.ClientNo, BasePolicyTransactionNo = Model.PolicyTransactionNo, PolicyTransactionCoverageId= full.id }, new { area="", @class = "btn btn-primary" }) '