Grid with "Static" field values

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

    Posted 13 Jun 2019 Link to this post

    HI all  I'm Kind of new to Grids  

    i want to build an grid  which looks kind of this 

    Grid Title | Column Title  | Column Title | 

    row  Title | Value             | Value            |

    row  Title | Value             | Value            |

    row  Title | Value             | Value            |

     

    The "title" fields should not get a static content so they should not be retrieved from the database,

    the "value" fields should be "dynamic" and get their content from a database. 

    Now my question : how do I create these "static" fields? 

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5701 posts

    Posted 14 Jun 2019 Link to this post

    Hello Christian,

    You could define a column and put the row title in it through a template. You can find something similar in the very first column of the following demo: https://demos.telerik.com/aspnet-mvc/grid. You don't even need the #=# template syntax to use data fields in your case, it seems.

    You can then define its .Title("Grid Title") as a string. If this is not enough, you can even have a template for that too, see the Column Header Template demo: https://demos.telerik.com/aspnet-mvc/grid/headertemplate.


    Regards,
    Marin Bratanov
    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