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

using @item inside Template

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 18 Mar 2019, 12:00 AM

the telerik asp.net mvc grid has the @item to access the bound item  inside a  .Template . There seems to be no documentation on what the replacement is for asp.net core grids . How do we accomplish this? Can you give an example of a .Template that uses a value from the data  

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 20 Mar 2019, 03:39 PM
Hello Arun,

This syntax is used in the MVC Grid when it is server-bound only. The Core Grid does not support server binding, so there is no scenario in which Razor template syntax could be used.

With the Core Grid you should use the â€‹ClientTemplate configuration with Kendo UI client template syntax:
columns.Bound(product => product.ProductName).ClientTemplate("<strong>#:ProductName#</strong>");


Regards,
Tsvetina
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Arun
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or