Url.Action in Column Template

2 posts, 1 answers
  1. Rob
    Rob avatar
    7 posts
    Member since:
    Apr 2018

    Posted 12 Dec 2019 Link to this post

    Is there a way I can use a Url.Action in a column template so the  can appear similar to the foreign key function in the grid.

    Class TimeFrame



    columns.Add().Field(e => e.TimeFrameId).Template("@Url.Action("GetTimeFrame","TimeFrame", new {Id = #:TimeFrameId#})");

  2. Answer
    Tsvetomir avatar
    761 posts

    Posted 16 Dec 2019 Link to this post

    Hi Rob,

    I have noticed that this is a duplicate of another forum thread of yours. It is recommended to avoid submitting duplicate tickets as this would result in difficult navigation through your history. Check out the suggestion posted there:


    It is important to add that if you would like to use the value of another field, you would have to simply pass the name of the field inside the "#=#" kendo template.


    Best regards,
    Progress Telerik

    Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Back to Top