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

Can't change column type in Multi-column headers

3 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Namysław
Top achievements
Rank 1
Namysław asked on 08 Feb 2021, 01:58 PM
I've been implementing multi-column headers in grid and I've found out that I can't change type of columns that are part of
this "multi-column headers". Here is the demo that reproduces it: https://dojo.telerik.com/UbAJeYUJ.
I've taken it from https://demos.telerik.com/kendo-ui/grid/multicolumnheaders.
In this demo I've changed "Company name" column to date and it works. However I've also changed "Country"
column type to date. This column is part of "Location" column and changing "Country" type doesn't seem to work.
Is it the problem of wrong configuration?

Kendo UI v2020.3.1118

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Feb 2021, 09:51 AM

Hello Namysław,

 

Thank you for writing us.

You can achieve this requirement by using the schema.model of the DataSource instance in order to define the field types:https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/schema#schemamodel
I've modified the provided sample to apply the solution:
https://dojo.telerik.com/UbAJeYUJ/8

It works properly on my side. Feel free to give it a try and let me know if it works correctly on your side, too.

 

Regards,
Eyup
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Namysław
Top achievements
Rank 1
answered on 10 Feb 2021, 10:14 AM
Hello Eyup,

Thanks for response! I've changed the configuration and added schema to dataSource and it appears to be working now!
However is it intended to work that way? I mean, I can change the type of column that is standalone (not a part of multi-header)
when specyfing column configuration (title, field, width, etc.). Why then isn't it possible in case of multi-header column config?
I've found it a bit misleading.
0
Eyup
Telerik team
answered on 12 Feb 2021, 08:43 AM

Hello Namysław,

 

Yes, I think generally, this can be considered as a bug. And I will log it in our system.

Thank you for bringing it to our attention. I have updated your Telerik Points as a token of gratitude.

 

Regards,
Eyup
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Namysław
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Namysław
Top achievements
Rank 1
Share this question
or