1. #381
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    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 create it in my extended grid this way:
    PHP Code:
        ,onRender:function() {
            
    Ext.ux.grid.MetaGrid.superclass.onRender.apply(thisarguments);

            
    // mark new and dirty rows
            
    if('function' !== typeof this.view.getRowClass) {
                
    Ext.apply(this.view, {
                    
    getRowClass:function(recordrowIndexrowParamsstore) {
                        if(
    record.get('newRecord')) {
                            return 
    this.newRowCls;
                        }
                        if(
    record.dirty) {
                            return 
    this.dirtyRowCls;
                        }
                    }.
    createDelegate(this)
                });
            }

        } 
    // eo function onRender 
    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. #382
    Ext User
    Join Date
    Apr 2009
    Posts
    9
    Vote Rating
    0
    jmaldini is on a distinguished road

      0  

    Default Thanx! That's fork fine.

    Thanx! That's fork fine.


    Thats work fine, thanx!

    Quote Originally Posted by jsakalos View Post
    I create it in my extended grid this way:
    PHP Code:
        ,onRender:function() {
            
    Ext.ux.grid.MetaGrid.superclass.onRender.apply(thisarguments);

            
    // mark new and dirty rows
            
    if('function' !== typeof this.view.getRowClass) {
                
    Ext.apply(this.view, {
                    
    getRowClass:function(recordrowIndexrowParamsstore) {
                        if(
    record.get('newRecord')) {
                            return 
    this.newRowCls;
                        }
                        if(
    record.dirty) {
                            return 
    this.dirtyRowCls;
                        }
                    }.
    createDelegate(this)
                });
            }

        } 
    // eo function onRender 
    If you use metagrid too, please help me with this, MJ doesn't reply to this:
    How may i load combo's?

    Quote Originally Posted by jmaldini View Post
    Dear MJ, I have used with this combo my grid is not loaded like grid henryivy's and Pimo's :-(
    But without combo box editor settings for combo store its working
    (grid is loaded with data and combo , combo is not loaded with data, firebug fired when try to edit combo - "store undefined")
    but with combo box editor settings for combo store its not loading the grid itself

    Code:
                   "store":{"storeType":"SimpleStore",
                            "config":{"id":0,
                                      "data":{1:"Auto", 2:"Computer"},
                                      "fields":{"CId","CName"}
                            }
                   },
    originally posted here -> http://extjs.com/forum/showthread.php?t=57694&page=6

  3. #383
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    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 create combos extensions and I deliver only xtype from the server.
    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. #384
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    582
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    I doesn't quite get it, what are the two Grids?

    What does the Example.Grid do and what the Example.Grid1?

    thx
    Dumas

  5. #385
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    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


    win2 is not shown - the code can be deleted and grid2 is commented out. It is some old code I used for some testing.
    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


  6. #386
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    582
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    The grid initComponent-function looks like that:
    Code:
        initComponent:function() {
            this.recordForm = new Ext.ux.grid.RecordForm({
                title:lang.KaizenSoft.grid.EditRecord,
                iconCls:'icon-edit-record',
                columnCount:2,
                ignoreFields:{id:true},
                readonlyFields:{name:true},
                disabledFields:{content:true},
    ....
    But I can edit the field with column-id 'name' and see the content. To what does it reffere, what do I have to use (name-property of the store, columns id-property, ....) so it works?

    How Can I hide a cloumn in the grid whcih should be editable in the recordForm?

    thx
    Dumas

  7. #387
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    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


    See the example; all your questions are answered by the code. Field names in ignoreFields, readonlyFields and disabledFields are names used in store.
    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. #388
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    582
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    Oh, I thought it doesn't work, because readonly Fields are still displayed in an inputfield and it can't handle the Ext.ux.HTMLEditor...



    How can I make the recordform bigger,
    Code:
    this.recordForm = new Ext.ux.grid.RecordForm({ .....
        width:800, ....});
    didn't work

    thx
    Dumas

  9. #389
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    582
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    Is it possible to display fields int the RecordForm which aren't displayed in the grid, but in the store?

  10. #390
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    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


    Quote Originally Posted by Dumas View Post
    Oh, I thought it doesn't work, because readonly Fields are still displayed in an inputfield and it can't handle the Ext.ux.HTMLEditor...



    How can I make the recordform bigger,
    Code:
    this.recordForm = new Ext.ux.grid.RecordForm({ .....
        width:800, ....});
    didn't work

    thx
    Dumas
    If you follow my example from http://recordform.extjs.eu then windows are stateful so their widths are remembered between sessions. Window is the component that determines width in the example.

    I haven't tried html editor but configuration of fields of form is same as configuration of editors in column model. Try to experiment with that.
    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


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)