1. #171

  2. #172
    Touch Premium Member msinn's Avatar
    Join Date
    Jul 2009
    Location
    in front of my pc
    Posts
    280
    Vote Rating
    5
    msinn is on a distinguished road

      0  

    Default


    Quote Originally Posted by leowyatt View Post
    I've been using this filter with the checkbox selection model but if the user checks rows and then filters data the rows are no longer checked. If there anything in particular I need to do to get it to save which check boxes have been checked?
    Hi, do you use it with local:false(default), as remote filtering?
    Do you reload the datastore on filter changes? autoReload: true(default)

    When both, than you have first to save all IDs (IdProperty in your Store) of the selected rows. After filtering you reselect the filtered Ids manually.

    Take a look in GridFilters.js to bindStore: to understand how the extension binds the grid store, then you can try to select and reselect the rows on your store events 'beforeload' and 'load'

    Its just an advice, try it to find out, if it works
    First I would like to thank you for your time and knowledge

    Win 7 Ext JS 4.1.3 IE(6-9), FF17

  3. #173
    Sencha User goofy's Avatar
    Join Date
    Mar 2008
    Posts
    38
    Vote Rating
    0
    goofy is on a distinguished road

      0  

    Default


    Hi,
    someone have a idea/solution to save and restore GridFilters settings ?

    Thanks

  4. #174
    Sencha User filippo.ferrari's Avatar
    Join Date
    Apr 2010
    Location
    Sanremo - Italy
    Posts
    126
    Vote Rating
    1
    filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute

      0  

    Default


    I've a problem... how to setup a numeric filter via script?

    With .setActive(true) and .setValue(somevalue); I can set a filter for list filters but how to do it with a numeric filter (I want setup myfilter = somevalue).

  5. #175
    Ext User
    Join Date
    Apr 2010
    Posts
    17
    Vote Rating
    0
    Ebpo is on a distinguished road

      0  

    Default


    Hi!

    I have a problem, not sure if this is where I'm supposed to post.
    In the menu to filter numeric value (with gt, lt and eq), icons (=, >, <) are overlapping eachother and doubled.

    Does anybody know what's the problem?
    Thanks!

  6. #176
    Sencha User
    Join Date
    Mar 2008
    Posts
    53
    Vote Rating
    2
    manilodisan is on a distinguished road

      0  

    Default


    I have autoReload set to true and an event placed on the beforedestroy method of the panel which contains my grid in order to clear the filters. In firebug, after closing that panel I get an error message stating that store is null which indicates that, after closing the panel, my filter tries to do a store reload for some reasons.

    PHP Code:
    ordersPanel.on("beforedestroy", function() {
                
    Ext.getCmp('ordersGrid').filters.clearFilters ();
                return 
    true;
    }); 
    This returns:
    Code:
    store is null: GridFilters.js line 503
    Any ideas how to fix this?

  7. #177
    Sencha User
    Join Date
    Jun 2010
    Location
    Buenos Aires, Argentina
    Posts
    213
    Vote Rating
    9
    ldonofrio will become famous soon enough

      0  

    Default


    Maybe it have something to do with a list filter, the plugin destroy the filter store onDestroy. I've a override that use the store autoDestroy flag to prevent this.

    Code:
    Ext.override(Ext.ux.menu.ListMenu, {    destroy: function() {        if (this.store && this.store.autoDestroy) {            this.store.destroy();        }        Ext.ux.menu.ListMenu.superclass.destroy.call(this);    }});
    Quote Originally Posted by manilodisan View Post
    I have autoReload set to true and an event placed on the beforedestroy method of the panel which contains my grid in order to clear the filters. In firebug, after closing that panel I get an error message stating that store is null which indicates that, after closing the panel, my filter tries to do a store reload for some reasons.

    PHP Code:
    ordersPanel.on("beforedestroy", function() {
    Ext.getCmp('ordersGrid').filters.clearFilters ();
    return 
    true;
    }); 
    This returns:
    Code:
    store is null: GridFilters.js line 503
    Any ideas how to fix this?

  8. #178
    Ext User
    Join Date
    Apr 2010
    Posts
    4
    Vote Rating
    0
    sizemorew is on a distinguished road

      0  

    Default


    Not sure how useful anybody else will find it, but I did a custom modification to the DateFilter to give it the ability to search for null dates. Details are here:

    http://www.sencha.com/forum/showthre...795#post560795

  9. #179
    Ext User
    Join Date
    Jun 2010
    Posts
    1
    Vote Rating
    0
    david777 is on a distinguished road

      0  

    Default


    Hi...
    A strange problem :
    I have a problem with Firefox and Linux distribution when trying to type a string filter containing the character % :
    It's like if I did nothing: the% character is not displayed in the text box, and no filter is applied.

    Has anyone had this problem and knows the solution ?

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

      0  

    Default Filtering: multiple stores, multiple grids, multiple tabs

    Filtering: multiple stores, multiple grids, multiple tabs


    I am developing an application that uses metadata-driven grids with gridfilters in a tabpanel.

    Tabs are created dynamically via links.

    Basically not sooo difficult
    But unfortunately, the application can not handle gridfilters for more than one grid in a time.
    Gridfilters are removed every time a new grid in a new tab is created and only the active tab got the gridfilter functionality.

    Any ideas??

    screendump.zip

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)