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

Lock/Unlock columns

3 Answers 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
carlos
Top achievements
Rank 1
Veteran
carlos asked on 11 Aug 2020, 09:17 AM

Hi all.

In this example: https://demos.telerik.com/kendo-ui/grid/multicolumnheaders.
How can I lock / unlock columns from the column menu?

 

Thank you in advande.
Regards,
Carlos Conde

3 Answers, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 13 Aug 2020, 09:12 AM

Hi Carlos,

The Lock/Unlock functionality of the Grid's columns doesn't work when where are columns defined with a Multi-column header. 

For example, if we take this Dojo project when you remove the following column definitions the "Lock/Unlock" functionality appears back in the column menus. 

              {
                columns: [{
                  field: "ShipCity",
                  title: "Ship City",
                  width: 300
                },{
                  field: "ShipName",
                  title: "Ship Name",
                  locked: true,
                  width: 300
                }, ]
              }

Regards,
Petar
Progress Telerik

0
carlos
Top achievements
Rank 1
Veteran
answered on 14 Aug 2020, 09:25 AM

Hi Petar,

 

Thank you so much for your response.

It is planned to implement the lock/unlock function with multicolumns in the roadmap?

 

Best Regards,
Carlos Conde

0
Petar
Telerik team
answered on 18 Aug 2020, 07:02 AM

Hi Carlos,

To be sure that I didn't mislead you, I want to tell that in general, we can programmatically lock/unlock the MultiColumn headers. I didn't share this in my previous reply because this lock/unlock cannot be handled through a column menu and when there is a MultiColumn header defined, we can only lock/unlock the row with the MultiColum headers, not these of the columns that display the data. Here is a Dojo demonstrating how we can lock a MultiColumn header. 

To answer your question from your last reply, the functionality to lock/unlock columns that have MultiColumn header cannot be implemented and is not in the roadmap. When there is a MultiColumn header, if we lock a column that is below such MultiColumn header, when the column is moved to the left side of the Grid, what will happen with the layout of the MultoColum header? 

I hope the above answers your question.

Regards,
Petar
Progress Telerik

Tags
Grid
Asked by
carlos
Top achievements
Rank 1
Veteran
Answers by
Petar
Telerik team
carlos
Top achievements
Rank 1
Veteran
Share this question
or