ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to call a simple view from Grid
Title:
B
I
{code}
?
Hi, How do I format a ClientFormat in "new column" to create a link to call a simple page (no popup) for example include @Html.ActionLink("Action", "ControlName", new { id = item.id }) within a Grid. Thanks, Nasir
Save Changes
Cancel
nasir
asked at 19 Dec 2015
Answers
B
I
{code}
?
you could generate the url in the controller and add it to the grid model ( via Map ), but since you need the same url for all rows, just different id, it's even simpler, you could just do: new Column { ClientFormat = Html.ActionLink("text","act","contr", new { id = ".Id"}).ToString() }
Save Changes
Cancel
Omu
answered at 19 Dec 2015
Worked - Thank you for quick response!
at 19 Dec 2015
nasir
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK