This is a migrated thread and some comments may be shown as answers.

[Solved] Html.Action in ClientTemplate

1 Answer 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terry Burns-Dyson
Top achievements
Rank 1
Terry Burns-Dyson asked on 12 Oct 2010, 08:54 PM
How do I get hold of the model values in my client template?

I have 

columns.Template(template => template.NewOrderID )
         .ClientTemplate(Html.Action("FindMatch""Home"new RouteValueDictionary { { "newOrderId""<#= NewOrderID #>" } }).ToString())
But, it fails with Parameters dictionary can't be null. So I assume that my value output is not being evaluated early enough. I tried to mimic the ActionLink stuff, assuming the behaviour would be the same, but it seems not to be true. 

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Shawn
Top achievements
Rank 2
answered on 30 Jun 2012, 11:16 AM
did you ever get a solution to this?
Tags
Grid
Asked by
Terry Burns-Dyson
Top achievements
Rank 1
Answers by
Shawn
Top achievements
Rank 2
Share this question
or