1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    16
    Vote Rating
    0
    myavuz is on a distinguished road

      0  

    Default Add/remove to grid dynamically

    Add/remove to grid dynamically


    My grid panel is like below. I want to add, remove, manipulate datas and reflect the results to the browser on an event handler. I used reach panel with Ext.get('MyUpload').setVisible(false); and make it invisible. But I want to change datas in the grid, I search and tried much but I could not achieve. I need to help, small examples like removing all datas are also helps me very much as well. Thanks in advance..


    PHP Code:
                                              xtype :'gridpanel',
                                            
    title'Papers',
                                            
    id:'MyGrid',
                                            
    store: {
                                                
    fields: ['name'],
                                                
    data: [
                                                       {
    name'Cowper'},
                                                       {
    name'Everett'},
                                                       {
    name'University'},
                                                       {
    name'Forest'}
                                                       ]
                                            },
                                            
    columns: [
                                                      { 
    text'Name',  dataIndex'name' }
                                                      ],
                                                      
    listeners: {
                                                          
    'itemclick':function( gridrecorditemindexevent){
                                                              
    //alert(Ext.decode(record));
                                                              
    alert(record.get('name'));

                                                              
    Ext.Ajax.request({
                                                                  
    url 'Download',
                                                                  
    method:'POST'
                                                                  
    params : {
                                                                      
    paperName:record.get('name'),
                                                                  },
                                                                  
    scope this,

                                                              }); 

                                                          }                                    

                                                      },

                                                      
    height200
                                        
    }, 

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

      0  

    Default


    Ok I solved to problem. I was reaching component with Ext.get, instead I should use Ext.getCmp, now it worked, but I do not understand why get also works with some methods like setVisible, I spent much time to solve problem for a little thing.

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