1. #41
    Sencha User
    Join Date
    May 2007
    Location
    Germany
    Posts
    73
    Vote Rating
    1
    AlxH is on a distinguished road

      0  

    Default


    One more thing :-))
    If working with autogrids it may be useful to pass the editor with metadata also in 'xtype' notation like:
    { name:'someColumn', header:'my first column', type: 'string', editor:{'xtype'
    : 'textfield', name:'someColumn'}}

    To do that, one could do something like that:

    Code:
                if(c && c.editor && c.editor.field) {
                    if (c.editor.field.getXType){ // dont know if there is a better way to check for an instance
                        Ext.apply(o, {
                             xtype:c.editor.field.getXType()
                            ,fieldLabel:c.header
                        }, c.editor.field.initialConfig);
                    } else {
                        Ext.apply(o,c.editor);
                        o.fieldLabel=c.header;
                    }
                }
    What do you think?

    greetings,
    Alex

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


    Well, the current logic is: You configure your column model (either statically from javascript or by receiving metaData from server) with some highly customized inputs (validation, decimal precision, combos with stores, etc.). Now, the plugin init runs and if it finds a column model editor then it uses it so all features and config options of original column editor are available in the form.

    If it doesn't find a column model editor it uses a "default" one (see mapping config option) depending on field type in the store. If I understand well you want some customized editors for fields that do not have column model editor and are not visible it the grid, right?

    If so, you can configure cm for such fields, so plugin can take their editors, but hide them from users so they don't see columns in the grid but can edit them in the form.

    I want to keep it simple as it is best way to have it bug free and easily configured.

    Or, am I missing the point?
    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


  3. #43
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    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 AlxH View Post
    Hello Josef,
    Im playing around with your plugin in my app. Works pretty nice now.

    You might also want to display the header if no editor is defined:

    Code:
        ,createFormConfig:function() {
    [...]
        
                if(c && c.editor && c.editor.field) {
    [...]
                }
    
                // use this.mapping to get field xtype
                else {
                    Ext.apply(o, {
                         fieldLabel:(c && c.header ? c.header:f.name)
                        ,xtype:this.mapping[f.type] || 'textfield'
                    });
                    if('date' === f.type && f.dateFormat) {
                        o.dateFormat = f.dateFormat;
                    }
                }
    [...]
    }
    Yes, good idea. Implemented.

    Thank you.
    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. #44
    Sencha User jahong's Avatar
    Join Date
    Mar 2008
    Location
    Indonesia
    Posts
    9
    Vote Rating
    0
    jahong is on a distinguished road

      0  

    Question [help]editor grid won`t work for me

    [help]editor grid won`t work for me


    hi JS, i`m a very very noobie...
    in your editor grid, why the edit button can delete the data ?? and also the search feature won`t work for my case...
    thank you

  5. #45
    Ext User
    Join Date
    Apr 2008
    Posts
    4
    Vote Rating
    0
    indrajit_bin_rahwana is on a distinguished road

      0  

    Question [help] Ofline RecordForm

    [help] Ofline RecordForm


    Hallo Josef,

    I have downloaded RecordForm and set it all but Search Menu and Save Menu aren't working, could I have some help on this problem ?

    Thanks

    Indrajit

  6. #46
    Sencha User
    Join Date
    May 2007
    Location
    Germany
    Posts
    73
    Vote Rating
    1
    AlxH is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    Well, the current logic is: You configure your column model (either statically from javascript or by receiving metaData from server) with some highly customized inputs (validation, decimal precision, combos with stores, etc.). Now, the plugin init runs and if it finds a column model editor then it uses it so all features and config options of original column editor are available in the form.

    If it doesn't find a column model editor it uses a "default" one (see mapping config option) depending on field type in the store. If I understand well you want some customized editors for fields that do not have column model editor and are not visible it the grid, right?

    If so, you can configure cm for such fields, so plugin can take their editors, but hide them from users so they don't see columns in the grid but can edit them in the form.

    I want to keep it simple as it is best way to have it bug free and easily configured.

    Or, am I missing the point?
    Of course, you are right.
    Its just in my implementation of the autogrid in which the editors are not automatically instanciated for the columnmodel, so at time of plugin-init the editor is plain json.
    So forget my remark.8)

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


    Your remarks are very valuable as they give me another viewpoints. Go on with them if you have any...
    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. #48
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Quote Originally Posted by jahong View Post
    hi JS, i`m a very very noobie...
    in your editor grid, why the edit button can delete the data ?? and also the search feature won`t work for my case...
    thank you
    There are two buttons in the far right column, one for editing, one for deleting. Did you hit the delete button by accident? See below for second problem.

    Quote Originally Posted by indrajit_bin_rahwana View Post
    Hallo Josef,

    I have downloaded RecordForm and set it all but Search Menu and Save Menu aren't working, could I have some help on this problem ?

    Thanks

    Indrajit
    won't or aren't working are pretty vague. You guys are not very specific in describing what the problem is. Sounds like a server side issue perhaps? What does firebug show for the post and response when you try saving/searching?

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


    What is Search Menu? What is Save Menu? What means "aren't working"?
    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. #50
    Sencha User jahong's Avatar
    Join Date
    Mar 2008
    Location
    Indonesia
    Posts
    9
    Vote Rating
    0
    jahong is on a distinguished road

      0  

    Default


    the firebugs is shows nothing when i`m try to save the data, and after i edit the data in the grid and try to save it, there`s a error message like this
    Code:
    {"success":false,"error":"Table, data or idName is missing"}
    firebugs (post):
    Code:
    cmd=saveData&objName=company&data=%5B%7B%22compID%22%3A15%2C%22company%22%3A%22Honeywell%20Intl%20Inc2%22%7D%5D
    and when try search data, firebugs (post) shows this :
    Code:
    start=0&limit=15&cmd=getData&objName=company&sort=compID&dir=ASC&fields=%5B%22compID%22%2C%22company%22%5D&query=exx
    and the response is :
    Code:
    {"success":true,"totalCount":31,"rows":[{"compID":"1","company":"3m Co"},{"compID":"2","company":"Alcoa Inc"},{"compID":"3","company":"Altria Group, Inc."},{"compID":"4","company":"American Express Company"},{"compID":"5","company":"American International Group, Inc."},{"compID":"6","company":"AT&T Inc."},{"compID":"7","company":"Boeing Co."},{"compID":"8","company":"Caterpillar Inc."},{"compID":"9","company":"Citigroup, Inc."},{"compID":"10","company":"E.I. du Pont de Nemours and Company"},{"compID":"11","company":"Exxon Mobil Corp"},{"compID":"12","company":"General Electric Company"},{"compID":"13","company":"General Motors Corporation"},{"compID":"14","company":"Hewlett-Packard Co."},{"compID":"15","company":"Honeywell Intl Inc"}]}
    sorry for my poor english....
    Last edited by mystix; 8 Apr 2008 at 6:25 AM. Reason: use [code][/code] tags

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