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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar