Lock/Unlock columns

4 posts, 0 answers
  1. carlos
    carlos avatar
    11 posts
    Member since:
    Aug 2020

    Posted 11 Aug 2020 Link to this post

    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

  2. Petar
    Admin
    Petar avatar
    472 posts

    Posted 13 Aug 2020 Link to this post

    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

  3. carlos
    carlos avatar
    11 posts
    Member since:
    Aug 2020

    Posted 14 Aug 2020 in reply to Petar Link to this post

    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

  4. Petar
    Admin
    Petar avatar
    472 posts

    Posted 18 Aug 2020 Link to this post

    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

Back to Top