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

column header title from server

1 Answer 177 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pankaj
Top achievements
Rank 1
Pankaj asked on 21 Oct 2016, 06:02 AM

i am building an asp.net MVC application. Requirement is to have kendo grid's header column titles coming from server and not hard coded. 

how to achieve this using asp.net MVC. please guide.

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 25 Oct 2016, 06:16 AM
Hi Pankaj,

You can define the titles for your columns directly in the Model through the DisplayName attribute:
[DisplayName("Product name")]
public string ProductName

You can also create your columns dynamically as shown in the following help topic:
Hope this helps.


Regards,
Konstantin Dikov
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
Grid
Asked by
Pankaj
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or