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

Dynamic multiple column title

2 Answers 263 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eduardo
Top achievements
Rank 1
Eduardo asked on 05 Jun 2017, 03:56 PM

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 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 07 Jun 2017, 08:00 AM
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.
0
Eduardo
Top achievements
Rank 1
answered on 10 Jun 2017, 11:37 PM

Stefan,

Thank you.

Edo.

Tags
Grid
Asked by
Eduardo
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Eduardo
Top achievements
Rank 1
Share this question
or