1. #1
    Ext User spectrus's Avatar
    Join Date
    Feb 2008
    Posts
    43
    Vote Rating
    0
    spectrus is on a distinguished road

      0  

    Question grid reconfigure() for plugins?

    grid reconfigure() for plugins?


    Just curious if it's possible to stuff a grid with different plugins at any point after having created it.

    Of course I could always have an if-else in the code with two almost-identical grid declarations.

    Tried Ext.apply (as below) but that didn't do anything.

    PHP Code:
                filters = new Ext.ux.grid.GridFilters({
                    ...
                });

                
    p_grid = new Ext.grid.GridPanel({
                    ...
                });

                if(
    mode == 'true'){
                    
    Ext.apply(p_grid, {
                        
    plugins: [filters]
                    });                
                } 
    Thanks!

  2. #2
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    At this time, it's not possible to apply a plugin after creation. All plugin setup is done in the constructor of the base Component. Technically, since all that's required for plugins to work is that the component pass a reference to itself via the plugin's init() method, you could do it manually like:
    Code:
    var p = new MyPlugin();
    p.init(myGrid);

  3. #3
    Ext User spectrus's Avatar
    Join Date
    Feb 2008
    Posts
    43
    Vote Rating
    0
    spectrus is on a distinguished road

      0  

    Default


    Sweet! Works like a charm, thank you!

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