column header title from server

2 posts, 0 answers
  1. Pankaj
    Pankaj avatar
    10 posts
    Member since:
    Feb 2016

    Posted 21 Oct 2016 Link to this post

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

    how to achieve this using MVC. please guide.



  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 25 Oct 2016 Link to this post

    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.

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