0

I could not find the answer anywhere, but i ended up with a solution described below.

If anyone knows a 'better' way...

Sander_P
  • 1,787
  • 1
  • 13
  • 37

1 Answers1

0

Note the double quotes in the html string!

.Columns(column => {
    column.For(m => 
        Html.Raw(
            string.Format(
                @"<a href=""{0}""><i class=""fa fa-pencil-square""></i></a>", 
                Url.Action("EditItem","MyController", new { id = m.id })
            )
        )
    );
 })
Sander_P
  • 1,787
  • 1
  • 13
  • 37