1. #1
    Sencha User raskri's Avatar
    Join Date
    Dec 2008
    Location
    Stavanger, Norway
    Posts
    73
    Vote Rating
    0
    raskri is on a distinguished road

      0  

    Post Cannot use a Ext.form.CompositeField as a cell editor in Ext.grid.EditorGridPanel

    Cannot use a Ext.form.CompositeField as a cell editor in Ext.grid.EditorGridPanel


    The error occurs in the doLayout function in Ext.form.CompositeField since the field doesnt have an ownerContainer when it is used as a cell editor.

    The doLayout function in Ext.form.CompositeField(this.ownerCt is undefined):
    Code:
        doLayout: function(shallow, force) {
            if (this.rendered) {
                var innerCt = this.innerCt;
    
                innerCt.forceLayout = this.ownerCt.forceLayout;
                innerCt.doLayout(shallow, force);
            }
        }
    By doing this, it works in my case:
    Code:
      doLayout: function(shallow, force) {
            if (this.rendered) {
                var innerCt = this.innerCt;
    
                if (this.ownerCt) {
                    innerCt.forceLayout = this.ownerCt.forceLayout;
                }
                
                innerCt.doLayout(shallow, force);
            }
        }
    Any thoughts?

  2. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    4
    Vote Rating
    0
    rhorn is on a distinguished road

      0  

    Default


    This also worked for me expect for internet Explorer (no surprise there). In order to get it to work with IE I needed to set the editors allowBlur to false; which i did via an override. Without this override the editor would appear, but if you clicked on the cell again it would disappear.

    Code:
    Ext.override(Ext.Editor, {
    allowBlur: false
    });

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    1
    Vote Rating
    0
    Fernell is on a distinguished road

      0  

    Default


    Messing with ExtJs sources is not a good idea. You can forbid compostiefield to call doLayout by setting event beforeshow and return false. So lets see it on example:

    Code:
    Ext.getCmp('id_of_your_compositefield').on('beforeshow', function() { return false; });
    And you are good to go.

Similar Threads

  1. Replies: 0
    Last Post: 18 Jun 2010, 12:54 PM
  2. [CLOSED] Ext.grid.EditorGridPanel editor doesn't select row
    By mitchellsimoens in forum Ext 3.x: Bugs
    Replies: 3
    Last Post: 28 Feb 2010, 10:31 AM
  3. EditorGridPanel > editor: > How to make the editor dynamic for each cell
    By srajakaruna in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 9 Oct 2008, 7:53 AM
  4. Showing grid's cell editor in Ext.Window
    By nthamizhan in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 16 Aug 2008, 8:29 AM

Thread Participants: 2

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