Dynamic multiple column title

3 posts, 0 answers
  1. Eduardo
    Eduardo avatar
    21 posts
    Member since:
    Aug 2016

    Posted 05 Jun 2017 Link to this post

    Hello All,

    I can see how to set up a multi-column title here: http://demos.telerik.com/kendo-ui/grid/multicolumnheaders

    But, how can I make it dynamically? I'm loading different data sets, in which actual versus budget columns differ among data sets.

    Thank you.

    Edo.

  2. Stefan
    Admin
    Stefan avatar
    2880 posts

    Posted 07 Jun 2017 Link to this post

    Hello Eduardo,

    If the multi-column headers have to be changed dynamically this can be achieved using the setOptions method of the Grid to programmatically change the column configuration when needed:

    http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-setOptions

    Please have in mind that this will require passing the whole column configuration, as passing only the new column will just add it to the current once.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Eduardo
    Eduardo avatar
    21 posts
    Member since:
    Aug 2016

    Posted 10 Jun 2017 in reply to Stefan Link to this post

    Stefan,

    Thank you.

    Edo.

Back to Top