1. #181
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,521
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I'd say RowActions currently don't distinguish between right and left click. You can look in that direction...
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  2. #182
    Sencha User
    Join Date
    Dec 2007
    Location
    Aubagne, France
    Posts
    347
    Vote Rating
    1
    mask_hot is on a distinguished road

      0  

    Default


    But I do not use RowActions

  3. #183
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,521
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Then I don't know...
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  4. #184
    Sencha Premium Member neenhouse's Avatar
    Join Date
    Dec 2007
    Location
    Austin
    Posts
    168
    Vote Rating
    1
    neenhouse is on a distinguished road

      0  

    Default 2 or more RecordForms...

    2 or more RecordForms...


    Saki-

    Fantastic plugin. Thank you for all your hard work!

    I'm having an issue that has been previously posted about, but I have not been able to resolve with that information. I have defined 3 of your handy EditorGridPanels like:

    Code:
    RecordForm.Grid1 = Ext.extend(Ext.grid.EditorGridPanel, {options});
    RecordForm.Grid2 = Ext.extend(Ext.grid.EditorGridPanel, {options});
    RecordForm.Grid3 = Ext.extend(Ext.grid.EditorGridPanel, {options});
    Each with different column/store/record defintitions, and different update methods. Their xtypes are registered as well. I am calling these grids from a clickable nodes in a tree on the left side of a window panel. The click action loads the editorGrids into the main view like this:
    Code:
     listeners:{'click':function(node){
                cp = Ext.getCmp('configPanel'); // the id name of the main panel 
                cp.body.mask('Loading Grid...', 'x-mask-loading')
                var divPanel = {
                        id:'divPanel',
                        xtype:'panel',
                        layout:'fit',
                        border:false, bodyBorder:false,
                        stateful:false,
                        defaults:{border:false, bodyBorder:false, bodyStyle:'10px 10px 10px 10px;'},
                        items:{xtype:'grid1', id:'grid1'},
                        listeners:{
                            'remove':function(){
                                Ext.getCmp('grid1').destroy();
                            }
                        }
                    };
                    cp.body.unmask();
                    cp.remove(Ext.getCmp('divPanel'), true);
                    cp.add(divPanel);
                    cp.doLayout();
                }}
    But when I click on one editorGrid, then a 2nd one, and try to add a record, the form from the first editorGrid is loaded instead. I am unsure where I am going wrong! Can you help?
    I love ext.

  5. #185
    Sencha Premium Member neenhouse's Avatar
    Join Date
    Dec 2007
    Location
    Austin
    Posts
    168
    Vote Rating
    1
    neenhouse is on a distinguished road

      0  

    Default ack

    ack


    Well- turns out a previous suggestion worked when I restarted my browser (sometimes firebug hangs on to javascript with a deathgrip, for me anyways...)

    I had a small issue when destroying and recreating the recordform object.
    It took me hours to find out what is causing it. The following seems to fix it:
    Replace

    Code:
    var config = Ext.apply(this.defaultWindowConfig, this.windowConfig);
    With
    Code:
     var config={};
     Ext.apply(config,this.defaultWindowConfig);
     Ext.apply(config, this.windowConfig);
    in the show-function.
    How is my code look anyway? Is the destroy method unneccessary you think? Is there a better way to update/replace a panels body?
    I love ext.

  6. #186
    Sencha Premium Member neenhouse's Avatar
    Join Date
    Dec 2007
    Location
    Austin
    Posts
    168
    Vote Rating
    1
    neenhouse is on a distinguished road

      0  

    Default one more issue...

    one more issue...


    Sorry to bomb this thread so fast!

    I have a remote combo box in my editor grid, when I use it in the editor grid then try to use it when adding a record, the combo box does not load the remote data even though I can see a ajax call and correct data being returned.

    Here is how my combo is defined in the column model:
    Code:
     ,columns:[{
                     header:'Status'
                    ,id:'status'
                    ,dataIndex:'status'
                    ,width:100
                    ,sortable:true
                    ,editor:new Ext.form.TextField({
                         allowBlank:false
                        ,decimalPrecision:0
                        ,selectOnFocus:true
                    })
                    },{
                     header:'Type'
                    ,dataIndex:'type'
                    ,width:100
                    ,sortable:true
                    ,align:'right'
                    ,editor:statusTypeCombo
                    ,renderer:Ext.ux.renderer.Combo(statusTypeCombo)
                    }, this.rowActions]
    statusTypeCombo is created from a function before this column model is defined:

    Code:
    var statusTypeCombo = genStatusTypeCombo();
    ...
    function genStatusTypeCombo(){
        return new Ext.form.ComboBox({fieldLabel:'Status',
                            store: new Ext.data.Store({
                                proxy: new Ext.data.HttpProxy({
                                    url: 'php/combo.php'
                                }),
                                reader: new Ext.data.JsonReader({
                                    root: 'results',
                                    id: 'display'
                                },  new Ext.data.Record.create([
                                {name: 'value', mapping:'value'},
                                {name: 'combo', mapping:'display'}
                                ])),
                                baseParams: {view:'status', field:'status_type'}
                                //autoLoad:true
                            }),
                            id:'status_type_edit',
                            hiddenName:'status_type',
                            mode:'remote',
                            displayField:'combo',
                            valueField:'value',
                            triggerAction:'all',
                            allowBlank:false
                    });
    }
    and I have a defined combo renderer like this:

    Code:
    Ext.ns("Ext.ux.renderer");
    
    Ext.ux.renderer.ComboRenderer = function(options) {
        var value = options.value;
        var combo = options.combo;
    
        var returnValue = value;
        var valueField = combo.valueField;
    
        var idx = combo.store.findBy(function(record) {
            if(record.get(valueField) == value) {
                returnValue = record.get(combo.displayField);
                return true;
            }
        });
    
        // This is our application specific and might need to be removed for your apps
        if(idx < 0 && value == 0) {
            returnValue = '';
        }
    
        return returnValue;
    };
    
    Ext.ux.renderer.Combo = function(combo) {
        return function(value, meta, record) {
            return Ext.ux.renderer.ComboRenderer({value: value, meta: meta, record: record, combo: combo});
        };
    }
    What could cause the combo not to load its data the 2nd time and up on?
    I love ext.

  7. #187
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,521
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    All these "2nd time" issues could be one of the following:

    1) colliding ids - same ids for more than one component/element
    2) not properly destroying a component so it stays in javascript's variable table
    3) creating new component in a variable over an old one, e.g.
    var combo = new ....
    // later in code
    combo = new ...

    Be in your shoes I'd go strictly for lazy instantiating/rendering, keeping as much variables as possible as class variables and I'd provide custom onDestroy methods if needed.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  8. #188
    Sencha Premium Member neenhouse's Avatar
    Join Date
    Dec 2007
    Location
    Austin
    Posts
    168
    Vote Rating
    1
    neenhouse is on a distinguished road

      0  

    Default


    Thanks Saki- I'll put your comments into some serious practice and see where it leads me. One question- If I destroy a parent container, do its children also get destroyed along with it?
    I love ext.

  9. #189
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,521
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    If they have been added with add method or defined as items array, then yes.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  10. #190
    Sencha Premium Member neenhouse's Avatar
    Join Date
    Dec 2007
    Location
    Austin
    Posts
    168
    Vote Rating
    1
    neenhouse is on a distinguished road

      0  

    Default


    excellent, thanks
    I love ext.

Thread Participants: 97

  1. franklt69 (1 Post)
  2. Wolfgang (1 Post)
  3. mystix (1 Post)
  4. cobnet (8 Posts)
  5. chiphi13 (4 Posts)
  6. mike1993 (1 Post)
  7. violinista (1 Post)
  8. hui2008 (4 Posts)
  9. AlxH (12 Posts)
  10. oracio (1 Post)
  11. CINUE (2 Posts)
  12. phpcoder (3 Posts)
  13. ostghost (2 Posts)
  14. tdikarim (4 Posts)
  15. lkasdorf (3 Posts)
  16. derf (1 Post)
  17. mjlecomte (11 Posts)
  18. farracha (1 Post)
  19. jcwatson11 (2 Posts)
  20. robin30 (8 Posts)
  21. bluesapphire (1 Post)
  22. wm003 (1 Post)
  23. divxer (1 Post)
  24. escalade (2 Posts)
  25. boonkerz (5 Posts)
  26. JamesC (2 Posts)
  27. neenhouse (5 Posts)
  28. mask_hot (18 Posts)
  29. concep86 (2 Posts)
  30. sinma (2 Posts)
  31. kai5263499 (2 Posts)
  32. jcmartinez (1 Post)
  33. trak (1 Post)
  34. amit.shukld (1 Post)
  35. hsurya (1 Post)
  36. richgoldmd (1 Post)
  37. loic (7 Posts)
  38. jimpa911 (1 Post)
  39. chalu (3 Posts)
  40. damian79 (1 Post)
  41. jimkan (6 Posts)
  42. jahong (7 Posts)
  43. winnel (1 Post)
  44. joku (1 Post)
  45. josephf (2 Posts)
  46. indrajit_bin_rahwana (4 Posts)
  47. nojutsu (2 Posts)
  48. pokerking400 (15 Posts)
  49. georgiosleon (2 Posts)
  50. snilson (2 Posts)
  51. nightowl (1 Post)
  52. gthe (1 Post)
  53. descheret (1 Post)
  54. nebbian (2 Posts)
  55. se7en.hu (1 Post)
  56. towanime (2 Posts)
  57. pravidya (4 Posts)
  58. cnagel (2 Posts)
  59. extnam01 (2 Posts)
  60. Rothariger (6 Posts)
  61. dsmaevich (1 Post)
  62. uidtest (2 Posts)
  63. savant (4 Posts)
  64. aserron (1 Post)
  65. skaue (1 Post)
  66. ielektronick (1 Post)
  67. kalpan (4 Posts)
  68. jasonb885 (2 Posts)
  69. wemerson.januario (1 Post)
  70. extjs_new (23 Posts)
  71. Dumas (24 Posts)
  72. m.natarajan (1 Post)
  73. MrEnirO (4 Posts)
  74. jove76 (2 Posts)
  75. CircleCode (3 Posts)
  76. mdimino (7 Posts)
  77. flinz (2 Posts)
  78. vince (2 Posts)
  79. jmaldini (5 Posts)
  80. mixer80 (1 Post)
  81. prox00 (1 Post)
  82. macdoug1 (14 Posts)
  83. return1.at (8 Posts)
  84. islabucasgrande (1 Post)
  85. big (1 Post)
  86. NicP (9 Posts)
  87. taron133 (1 Post)
  88. araiczyk (1 Post)
  89. adhoul (1 Post)
  90. mayurid (9 Posts)
  91. Kalpit (10 Posts)
  92. bizcatalyst (1 Post)
  93. Manuelbond007 (2 Posts)
  94. nasargus (1 Post)
  95. shahab_et (1 Post)
  96. stevwinata (5 Posts)
  97. tomdchi (2 Posts)
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