You found a bug! We've classified it as EXTJS-8605 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    291
    Vote Rating
    0
    jheid is on a distinguished road

      0  

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

    [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,
    Jörn

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,795
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi