1. #181
    Sencha User
    Join Date
    Apr 2011
    Posts
    2
    Vote Rating
    0
    hachie is on a distinguished road

      0  

    Exclamation Problem with GridFilters and reopen Grid

    Problem with GridFilters and reopen Grid


    I have a Grid with GridFilter and when I show for the first times the grid it's work all fine.
    If I close the grid and after I reopen it the GridFilter doesn't appears. Why?

    The code is:

    WINConsulente_GRID = Ext.extend(Ext.grid.EditorGridPanel, {
    plugins: [new Ext.ux.grid.GridFilters({
    filters:[
    {type: 'string',dataIndex: 'cod'},
    {type: 'string',dataIndex: 'username'/*,disabled: true*/},
    {type: 'string',dataIndex: 'ragione_sociale'},
    {type: 'string',dataIndex: 'telefono'},
    {type: 'string',dataIndex: 'fax'},
    {type: 'string',dataIndex: 'email'},
    {type: 'string',dataIndex: 'website'},
    {type: 'string',dataIndex: 'ref_nome'},
    {type: 'string',dataIndex: 'ref_cognome'},
    {type: 'string',dataIndex: 'ref_telefono'},
    {type: 'string',dataIndex: 'ref_cellulare'},
    {type: 'string',dataIndex: 'ref_email'},
    {type: 'string',dataIndex: 'indirizzo'},
    {type: 'string',dataIndex: 'cap'},
    {type: 'string',dataIndex: 'frazione'},
    {type: 'string',dataIndex: 'localita'},
    {type: 'string',dataIndex: 'provincia'},
    {type: 'string',dataIndex: 'cod_ateco'},
    {type: 'string',dataIndex: 'desc_ateco'},
    {type: 'string',dataIndex: 'cod_inail'},
    {type: 'string',dataIndex: 'sede_inail'},
    {type: 'string',dataIndex: 'iscrizione_inail'},
    {type: 'string',dataIndex: 'pers1'},
    {type: 'string',dataIndex: 'pers2'},
    {type: 'numeric',dataIndex: 'pers3'},
    /*{type: 'list',dataIndex: 'size',options: ['small', 'medium', 'large', 'extra large'],phpMode: true},*/
    {type: 'date',dataIndex: 'data_creazione',beforeText: 'Prima del', afterText: 'Dopo il', onText: 'Il' },
    {type: 'boolean',dataIndex: 'attivo'}
    ]
    })],

  2. #182
    Sencha User
    Join Date
    Mar 2009
    Posts
    6
    Vote Rating
    0
    mike2406 is on a distinguished road

      0  

    Default


    I fixed it by myself...thanks for your support

  3. #183
    Sencha User
    Join Date
    Apr 2007
    Posts
    66
    Vote Rating
    0
    cgi-bin is on a distinguished road

      0  

    Exclamation Strange behavior: position of filter box affects auto-apply of filter

    Strange behavior: position of filter box affects auto-apply of filter


    I noticed something strange... when using a string filter, when clicking drop-down menu in the header to fill in the filter, if the search field is to the right of the drop-down, the filter "auto applies" (ie. there is a slight delay when I finish typing (or press enter) and the filter automatically checks the checkbox and the filter is applied).

    However, if the column I want to filter is to the right side of the grid, and the filter field is forced to open to the left of the drop-down menu due to space limitations, the filter does NOT auto-apply if I pause typing or even press enter. I must manually check the check-box to have the filter applied.

    I'm using autoReload:false and local:true in case it matters.

  4. #184
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    36
    Vote Rating
    1
    mfrancey is on a distinguished road

      0  

    Default


    Hi there!

    I'd like to render the filter option list.
    Instead of having just the text ('small','medium','large',...), I'd like to have an icon first:

    Wanted code for rendered list:
    <img src="./smallIcon.gif"> Small
    <img src="./mediumIcon.gif"> Medium
    <img src="./largIcon.gif"> Large

    How to do this? Is it possible?

    Thanks for your answer

    Marc

  5. #185
    Sencha User
    Join Date
    Apr 2007
    Posts
    66
    Vote Rating
    0
    cgi-bin is on a distinguished road

      0  

    Default


    Minor bug: If the data associated with a column in a grid had NULL values, you'd get:
    PHP Code:
    Errorthis.inputItem.getValue() is undefined
    Source File
    http://doug-dev.pacourts.us/js/ExtJS/ux/grid/GridFilters/filter/StringFilter.js
    Line87 
    In StringFilter.js (Line 87) change:
    Code:
    return this.inputItem.getValue().length > 0;
    To:
    Code:
    return (this.inputItem && this.inputItem.getValue() && (this.inputItem.getValue().length > 0));

  6. #186
    Sencha User
    Join Date
    Apr 2007
    Posts
    66
    Vote Rating
    0
    cgi-bin is on a distinguished road

      0  

    Lightbulb SOLVED

    SOLVED


    I seem to have solved both of my problems... if you try to specify a filter:{ } definition in the defaults:{} config for the column model, it doesn't actually apply correctly. Once I explicitly put the filter:{ type:'string' } for each an every column, everything worked as expected.

    There is probably a bug somewhere, because it sort of worked before, just some strange behavior as explained.

    Just wanted to post my findings to help save others the headache of stepping through the code.

  7. #187
    Ext JS Premium Member
    Join Date
    Oct 2009
    Location
    Melrose, MA
    Posts
    48
    Vote Rating
    3
    hjones is on a distinguished road

      0  

    Default Link to Grails implementation by Mike Cantrell not valid

    Link to Grails implementation by Mike Cantrell not valid


    The link to a Grails implementation (by Mike Cantrell) on the first post of this thread appears to be no longer active.

    http://mcantrell.wordpress.com/2008/...ds-and-grails/

    Does anyone have access to or a copy of that code?

  8. #188
    Sencha User
    Join Date
    Feb 2011
    Posts
    17
    Vote Rating
    2
    JSassy is on a distinguished road

      0  

    Question


    Hi, I'm using this GridFilter extension with ExtJs 3.2.1. and it's really useful, good work so far.

    But I'm missing the options to search for <= and >=.
    Furthermore, it is not possible to specify a filter for "empty" or "not empty" values. For example I would like to see all rows that don't have any value in the filtered column.

    Are you planning to implement such filteroptions?

    Or is there anybody who implemented some of them already and would like to share the code?
    Thanks.

  9. #189
    Sencha User
    Join Date
    Apr 2010
    Location
    Bandung, West Java, Indonesia
    Posts
    15
    Vote Rating
    0
    novaku is on a distinguished road

      0  

    Question how to make list of the grid filter fetch from store/ajax request?

    how to make list of the grid filter fetch from store/ajax request?


    Good morning,

    based on this example : http://dev.sencha.com/deploy/ext-4.0...ter-local.html
    I have difficulty to take "list" type of filters to fetch from store / ajax request, take a look at my script, what is wrong with it?
    Is there any suggestion master?

    PHP Code:
    //initial variable
    var dataKategori '';
    Ext.Ajax.request({
        
    url'/CI/ecommerce/getKategoriBarang',
        
    success: function(response){
            
    dataKategori response.responseText;
        }
    });

    var 
    filters = {
        
    ftype'filters',        
        
    encodetrue,
        
    localfalse,
        
    filters: [{
            
    type'list',
            
    dataIndex'namaKategori',
        =>    
    options: [dataKategori],
            
    phpModetrue
        
    }, {
            
    type'string',
            
    dataIndex'namaBarang'
        
    }, {
            
    type'numeric',
            
    dataIndex'harga'
        
    }, {
            
    type'numeric',
            
    dataIndex'jumlahStock'
        
    }, {
            
    type'numeric',
            
    dataIndex'sisa'
        
    }]
    }; 

  10. #190
    Sencha User
    Join Date
    Aug 2009
    Posts
    20
    Vote Rating
    0
    cnicolas is on a distinguished road

      0  

    Default Number of Filtered rows

    Number of Filtered rows


    Hi !

    When gridFilter is active, how I can retrieve the number of filtered rows in my store and if a specific record is filtered ?

    Thank for your help.

Thread Participants: 84

  1. VinylFox (1 Post)
  2. galdaka (2 Posts)
  3. Condor (10 Posts)
  4. cgi-bin (4 Posts)
  5. Fabyo (8 Posts)
  6. fshort (1 Post)
  7. digitalkaoz (1 Post)
  8. steffenk (2 Posts)
  9. brookd (1 Post)
  10. jamie.nicholson (1 Post)
  11. sawan (1 Post)
  12. froamer (1 Post)
  13. jaquet (1 Post)
  14. KevinChristensen (1 Post)
  15. bernd01 (2 Posts)
  16. tonedeaf (7 Posts)
  17. seg (1 Post)
  18. calavera (5 Posts)
  19. httpdotcom (1 Post)
  20. Timido (3 Posts)
  21. mfrancey (1 Post)
  22. WixSL (1 Post)
  23. drieraf (1 Post)
  24. nickweavers (2 Posts)
  25. goofy (1 Post)
  26. mynameisyoda (1 Post)
  27. manilodisan (1 Post)
  28. eyetv (1 Post)
  29. renoye (3 Posts)
  30. pouniok (2 Posts)
  31. mcouillard (6 Posts)
  32. Scorpie (1 Post)
  33. wiznia (1 Post)
  34. fulfowi (2 Posts)
  35. benmclendon (1 Post)
  36. roemisch (2 Posts)
  37. zeruyo (1 Post)
  38. dizor (1 Post)
  39. SunWuKung (5 Posts)
  40. mx_starter (1 Post)
  41. jimtyp (2 Posts)
  42. nitingautam (1 Post)
  43. westy (2 Posts)
  44. slemiere (1 Post)
  45. mike2406 (2 Posts)
  46. msinn (12 Posts)
  47. RanmaSaotome (1 Post)
  48. cnicolas (2 Posts)
  49. lsaffre (1 Post)
  50. astraschedule (1 Post)
  51. hankin (2 Posts)
  52. mrinaljena (1 Post)
  53. dtex-lab (1 Post)
  54. yohnan (2 Posts)
  55. Override (2 Posts)
  56. hjones (1 Post)
  57. hexawing (1 Post)
  58. taronja (6 Posts)
  59. asbestos girl (7 Posts)
  60. stalek (1 Post)
  61. mpawlowski (1 Post)
  62. DerSalz (1 Post)
  63. jimm (1 Post)
  64. blueberrymuffins (2 Posts)
  65. gleskinen (1 Post)
  66. pmdarrow (1 Post)
  67. Fallen Zen (1 Post)
  68. filippo.ferrari (6 Posts)
  69. george4rotech (2 Posts)
  70. Ebpo (1 Post)
  71. Reimius (1 Post)
  72. webtime (9 Posts)
  73. Christiand (1 Post)
  74. Oliver Specht (1 Post)
  75. novaku (1 Post)
  76. sizemorew (1 Post)
  77. # eof (1 Post)
  78. ldonofrio (3 Posts)
  79. david777 (1 Post)
  80. ExTriqui (4 Posts)
  81. leowyatt (7 Posts)
  82. JSassy (1 Post)
  83. hachie (1 Post)
  84. radmila80 (1 Post)