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

Locking grid column dynamically

3 Answers 810 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bradley
Top achievements
Rank 1
Bradley asked on 27 Aug 2014, 01:29 AM
Can a column, which is unlocked (locked:false) on load, be unlocked in code after grid has loaded?

Thanks.

Bradley

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 27 Aug 2014, 11:55 AM
Hello Bradley,


You could use the lockColumn and unlockColumn methods of the Grid API to achieve this.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Narendra
Top achievements
Rank 1
answered on 23 Jun 2017, 03:45 PM

Hi Dim,

I am using "2012.3.1315" version of kendo in my project. I am trying to use the lockColumn function. I am getting the error sayinglockColumn is not a function. I also tried to set the  " in column schema. It is also not working. so, I believe the kendo version is not supporting this feature. Is there any way I can get it work. (If possible I like to know where can I get the documentation for Kendo 2012 version). Any help is Appreciated. 

 

Thanks

0
Konstantin Dikov
Telerik team
answered on 27 Jun 2017, 06:16 AM
Hello Narendra,

The locked columns functionality was introduced in Q1 2014, so if you want to take advantage of that functionality you should upgrade to a newer version.

As an alternative you could render two identical Grids with the same dataSource and display the "locked" columns in the right Grid and the other columns in the left Grid. You could then link the scrollbar of the right grid to the left one.


Regards,
Konstantin Dikov
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.
Tags
Grid
Asked by
Bradley
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Narendra
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or