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

Grid with "Static" field values

1 Answer 916 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 13 Jun 2019, 11:48 AM

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? 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 14 Jun 2019, 03:38 PM
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.
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or