Results 1 to 2 of 2

Thread: [4.2.0.265] Bug or Feature with RowEditing(?) and multiple, same dataIndex usage

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    298
    Vote Rating
    13
      0  

    Default [4.2.0.265] Bug or Feature with RowEditing(?) and multiple, same dataIndex usage

    Hi.

    I have had the problem that no value is set in a rowediting grid combox editor.
    When editing, the combobox didn't get any value although the value was there in the record.

    The problem (bug or feature) was that I used two columns with the same dataindex - one for a small icon, the other for editing:

    PHP Code:
    columns: [
     { 
    text''dataIndex'type'renderer: function (v) { ... } },
     { 
    text'Type'field: { xtype'combo', ... } }
     ] 
    I thought this should do but with this approach there's a bug/feature in Ext.form.Basic.js in the method findField

    PHP Code:
    findField: function(id) {
            return 
    this.getFields().findBy(function(f) {
                return 
    f.id === id || f.getName() === id;
            }); 
    because there's not only the combobox, but also a Ext.form.field.DisplayView with the same name (for the renderer).

    To fix this the findField has to be able to return multiple fields or it's not intended to use several columns with the same dataIndex which IMHO would be sad.

    Cheers,
    Jrn

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

    It's entirely possible that you may have the same dataIndex in multiple columns so I have opened a bug in our bug tracker.

Posting Permissions

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