1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    7
    Answers
    1
    Vote Rating
    0
    amanfredi is on a distinguished road

      0  

    Default Unanswered: GridPanel reconfigure views lenght error

    Unanswered: GridPanel reconfigure views lenght error


    Hi, i'm facing a problem with grid reconfigure (EXT 4.0.7). While reconfigure is executing, it hits this event:

    Code:
    onLastFocusChanged: function(oldFocused, newFocused, supressFocus) {        if( this.views == undefined) return;
            
            var views   = this.views,
                viewsLn = views.length,
                store   = this.store,
                rowIdx,
                i = 0;
    I added the underline code fragment, without it the grid reconfigure throw an error (views is undefined). My grid is the following:

    Code:
    {                xtype: 'gridpanel',
                    title: 'Lista Allegati',
                    selType: 'rowmodel',
                    dockedItems: [{
                        xtype: 'toolbar',
                        dock: 'top',
                        items: [
                            { 
                                xtype: 'button',
                                text: 'Aggiungi allegato',
                                handler: function () {
                                    // Create a model instance
                                    var r = Ext.create('GestioneDocumenti.Web.model.Allegato', {
                                    });
                                    this.up('grid').getStore().insert(0, r);
                                }   
                            }
                        ]
                    }],
                    plugins: [
                        Ext.create('Ext.grid.plugin.CellEditing', {
                            clicksToEdit: 1
                        })
                    ],
                    columns: [
    	              {
    	                  xtype: 'gridcolumn',
    	                  dataIndex: 'Id',
    	                  text: 'Id'
    	              }, {
    	                  xtype: 'gridcolumn',
    	                  dataIndex: 'Path',
    	                  text: 'Path',
    	                  editor: 'textfield'
    	              }, {
    	                  xtype: 'gridcolumn',
    	                  dataIndex: 'AllegatoKind',
    	                  text: 'AllegatoKind',
    	                  editor: 'textfield'
    	              }
                    ]
    	        }
    The code fragment that calls the reconfigure is the following.

    var allegatiGrid = control.down('componentListAllegato').child();
    allegatiGrid.reconfigure(modelInstance.Allegati());

    modelInstance.Allegati() is a store generated by a model association.

    Thank you

  2. #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