Locking grid column dynamically

4 posts, 0 answers
  1. Bradley
    Bradley avatar
    32 posts
    Member since:
    Aug 2014

    Posted 26 Aug 2014 Link to this post

    Can a column, which is unlocked (locked:false) on load, be unlocked in code after grid has loaded?

    Thanks.

    Bradley
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2310 posts

    Posted 27 Aug 2014 Link to this post

    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!
     
  3. Narendra
    Narendra avatar
    7 posts
    Member since:
    May 2017

    Posted 23 Jun 2017 Link to this post

    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 the property "locked:true" 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

  4. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 27 Jun 2017 Link to this post

    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.
Back to Top