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

Url.Action in Column Template

1 Answer 57 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 12 Dec 2019, 09:54 PM

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#})");

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetomir
Telerik team
answered on 16 Dec 2019, 03:53 PM

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:

https://www.telerik.com/forums/url-action-in-column-template-9796c608516c

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,
Tsvetomir
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.
Tags
TreeList
Asked by
Rob
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
Share this question
or