using @item inside Template

2 posts, 0 answers
  1. Arun
    Arun avatar
    2 posts
    Member since:
    Mar 2019

    Posted 17 Mar 2019 Link to this post

    the telerik 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 core grids . How do we accomplish this? Can you give an example of a .Template that uses a value from the data  

  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 20 Mar 2019 Link to this post

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

    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.
Back to Top