Results 1 to 5 of 5

Thread: [FIXED][3.0.0] Auto numbering the column ids?

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    157

    Default [TENT][3.0.0] Auto numbering the column ids?

    Hi! I don't think this is a bug, because it looks like it was added with purpose, but here it goes:
    In Ext 2.2 columns that didn't had an id setted received as the id the position in the columnModel (documentation states so even in 3.0: "Optional. A name which identifies this column (defaults to the column's initial ordinal position.)").
    Now, the id is generated automatically starting from 0 and unique for all the columns in all the grids. This forces you to always set up an id for the columns if you want them to be stateful.
    Is this a desirable change? Why don't stick up with the old method?

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996

    Default

    Thanks for the report.

    I'm not sure if it was really intended to create unique column id's or not. Marking this as OPEN.

  3. #3
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

    This still happens in Ext 3.0. I dropped the following code into the array grid example after it gets rendered:

    Code:
    var cm = grid.getColumnModel();
    console.log(cm.getColumnId(0));
    console.log(cm.getColumnId(1));
    The column at index 1 doesn't have an id assigned and returns an automatically generated id. Marking this as closed.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  4. #4
    Sencha User
    Join Date
    Jun 2008
    Posts
    157

    Default

    No, it shouldn't be closed, the thing is that that column will have different id if for example you open it twice or you create another grid first.
    I'm talking with mjlecomte in regard of this issue.

  5. #5
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996

    Default

    This issue was discussed further. A fix was tentatively applied to the trunk branch that gives the behavior like in 2.x where columns which do not have an id specified will use an autogenerated id based on the column's ordinal position in the column model config object.

    See revs 4872, 4879, and 4882.

    Updating the status of this thread to TENT.

Posting Permissions

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