This question is locked. New answers and comments are not allowed.
I am using Ajax data binding therefore cannot use the column template method. I have the column format working fine when picking up a single model value. Example;
I also need to access a second model property if possible I am trying to do something like this;
As you can see I want to append another Model value to my actionlink controller name as this is dynamically processed to decide which controller to use.
Is this possible? Can I use more thatn one model value in column format?
columns.Bound(o => o.UserId).Format(Html.ActionLink(ViewData["txtPassword"].ToString(), "ResetPassword", "Account",
new { id = "{0}", height = 200, width = 500, modal = "true" },
new { @class = "t-link action-edit thickbox" })).Title(" ").Encoded(false).Width(25)
.Sortable(false)
.Filterable(false)
.HtmlAttributes(new { @style = "text-align:center" });
I also need to access a second model property if possible I am trying to do something like this;
columns.Bound(o => o.UserId).Format(Html.ActionLink(ViewData["txtPassword"].ToString(), "ResetPassword", "Account_{1}",
new { id = "{0}", height = 200, width = 500, modal = "true" },
new { @class = "t-link action-edit thickbox" })).Title(" ").Encoded(false).Width(25)
.Sortable(false)
.Filterable(false)
.HtmlAttributes(new { @style = "text-align:center" });
As you can see I want to append another Model value to my actionlink controller name as this is dynamically processed to decide which controller to use.
Is this possible? Can I use more thatn one model value in column format?