Results 1 to 3 of 3

Thread: locked columns count in grid

  1. #1
    Sencha User
    Join Date
    Dec 2015
    Posts
    12
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: locked columns count in grid

    How to get the locked columns count in grid

  2. Thanks tristan.
    Actually I need list of locked columns.So iterated all the columns to check the ones with locked: true config

  3. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Answers
    165
    Vote Rating
    77
      0  

    Default

    You could reference the ColumnManager of the grid:
    Code:
    var cm = grid.getColumnManager();
    If you have locked columns, then there are going to be 2 header containers in the ColumnManager (headerCt and secondHeaderCt). Depending on which one contains the locked columns, you can do:
    Code:
    cm.headerCt.getColumnCount()
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  4. #3
    Sencha User
    Join Date
    Dec 2015
    Posts
    12
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Thanks tristan.
    Actually I need list of locked columns.So iterated all the columns to check the ones with locked: true config

Similar Threads

  1. Replies: 5
    Last Post: 18 May 2015, 4:45 AM
  2. Replies: 3
    Last Post: 23 Oct 2014, 4:48 AM
  3. Replies: 1
    Last Post: 9 Oct 2012, 10:06 AM
  4. Replies: 1
    Last Post: 31 May 2011, 7:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •