1. #71
    Sencha User
    Join Date
    Nov 2008
    Posts
    61
    Vote Rating
    0
    SunWuKung is on a distinguished road

      0  

    Default


    Hi,
    Is there a way to send the filter request only when the filter is 'ready' - when the filter box is closed instead of updating with every change in the box?
    Eg.
    with list filter - when the user finished ticking and unticking,
    with text filter - when the full search text is entered?

    For larger datasets and remote filtering this would be better for me.
    Thanks for the help.
    SWK

  2. #72
    Ext User
    Join Date
    Aug 2007
    Posts
    12
    Vote Rating
    0
    sawan is on a distinguished road

      0  

    Default


    Quote Originally Posted by froamer View Post
    I grabbed it from the Ext 3 Demo:
    http://extjs.com/deploy/dev/examples...ter-local.html

    However, I found that sorting and filtering grids with a horizontal scroll bar was a) not preserving the horizontal scroll pos and b) was not displaying the column headings correctly until after the grid was scrolled or resized.

    I don't know if this is by design, a bug or an incompatibility issue with the grid filter plug-in. So I put the following together until I can investigate further. It preserves the horizontal scroll pos onload (solves both my problems). I haven't found any problems with it yet...
    PHP Code:
    Ext.ux.GridViewPreserveHScroll Ext.extend(Ext.grid.GridView, {
        
    onLoad: function() {
            
    //overridden to preserve the horizontal scroll position
            
    this.scroller.dom.scrollTop 0;
        }
    }); 
    Use an instance of this as the grid view in your grid...
    PHP Code:
            clicksToEdit1,
            
    view: new Ext.ux.GridViewPreserveHScroll(),
            
    loadMasktrue,
            ... 
    Tested in the browsers I have: IE6, IE8, FF3.5, Chrome 2, Safari 4 (Windows)

    Doesn't work in Opera 9.64 for some reason - the headings display is not corrupted, but the horizontal scroll pos is not preserved.
    hi,

    i looked at your solution here http://www.extjs.com/forum/showthrea...127#post380127 and tried, but there is no change in the grid, in fact i get an error

    a.init is not a function
    [Break on this error] Ext.DomHelper=function(){var n=null;var ...(Ext.History,new Ext.util.Observable());

    and the grid is not displayed

    Can you pl help?

  3. #73
    Ext JS Premium Member mcouillard's Avatar
    Join Date
    Jun 2008
    Location
    Bucks County, PA
    Posts
    103
    Vote Rating
    8
    mcouillard will become famous soon enough

      0  

    Default autoreload

    autoreload


    Quote Originally Posted by SunWuKung View Post
    Hi,
    Is there a way to send the filter request only when the filter is 'ready' - when the filter box is closed instead of updating with every change in the box?
    SWK
    Code:
    autoReload:false, local:false

  4. #74
    Ext JS Premium Member mcouillard's Avatar
    Join Date
    Jun 2008
    Location
    Bucks County, PA
    Posts
    103
    Vote Rating
    8
    mcouillard will become famous soon enough

      0  

    Default


    Quote Originally Posted by mcouillard View Post
    Code:
    autoReload:false, local:false
    Actually, setting the grid filter like that results in no action when you hit ENTER on a filter text field. State change events fire, but the store is never loaded with the chosen filter. I'm still working on a solution...

  5. #75
    Sencha User
    Join Date
    Nov 2009
    Posts
    22
    Vote Rating
    0
    taronja is on a distinguished road

      0  

    Default images menu in internet explorer

    images menu in internet explorer


    Hi,

    I still have a problem with the icon images at the filter menu. In FF or Chrome it renders perfect but in IE I can't see the menu images. There're some solutions to that issue in the older version but don't apply to the current.
    Any idea?

    Internet Explorer


    Firefox

  6. #76
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,663
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    I like the filters. However it's hard to know if filters are applied, as you only can see it with open the column menu.
    So i made a simple button in tbar to remove all filters, maybe you need the same or want enhance it:
    in store listeners:
    Code:
    listeners: {
    	datachanged: function(store){
    		var hasFilters = false;
    		filters.filters.each(function (filter) {
    			if (filter.active) {
    				hasFilters = true;
    			}
    		});
    		if (hasFilters) {
    			this.doClearFilters.show();
    		} else {
    			this.doClearFilters.hide();
    		}
    	},
    	scope: this
    },
    and the button:
    Code:
    {
    	text: 'Clear all Filters',
    	ref: '../doClearFilters',
    	handler: function() {
    		filters.clearFilters();	
    	},
    	scope: this,
    	hidden: true
    },
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  7. #77
    Ext JS Premium Member mcouillard's Avatar
    Join Date
    Jun 2008
    Location
    Bucks County, PA
    Posts
    103
    Vote Rating
    8
    mcouillard will become famous soon enough

      0  

    Default clearfilters

    clearfilters


    Quote Originally Posted by steffenk View Post
    I like the filters. However it's hard to know if filters are applied, as you only can see it with open the column menu.
    Applied filters have their column header changed to be bold and italic. Maybe you're missing a CSS file?
    /ext-3.1.1/examples/ux/gridfilters/css/GridFilters.css
    /ext-3.1.1/examples/ux/gridfilters/css/RangeMenu.css

    Also, the standard Grid Filters package comes with a clearFilters() method. Like this:
    Code:
    oGrid.filters.clearFilters();  // disable column filters and reload store

  8. #78
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,663
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    i have the css included (of course) but i see no bold headers.
    Also i think it's not that userfriendly. Think of having 3 filters active, to get back unfiltered you have to uncheck three different menus.

    And in my example i already use the filters.clearFilters()
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  9. #79
    Ext JS Premium Member mcouillard's Avatar
    Join Date
    Jun 2008
    Location
    Bucks County, PA
    Posts
    103
    Vote Rating
    8
    mcouillard will become famous soon enough

      0  

    Default


    Quote Originally Posted by steffenk View Post
    i have the css included (of course) but i see no bold headers.
    Also i think it's not that userfriendly. Think of having 3 filters active, to get back unfiltered you have to uncheck three different menus.

    And in my example i already use the filters.clearFilters()
    Strange, I can't think of any other reason why the column headers wouldn't get styled when a filter is applied. Ext 3.1.1, I assume. Have you overridden the default filterCls from "ux-filtered-column"?

    Ah! I misunderstood the "ref" part of the example. Yes, I do agree that a single method to clear all column filters is very nice - I use it, too!

  10. #80
    Sencha User
    Join Date
    Nov 2009
    Posts
    22
    Vote Rating
    0
    taronja is on a distinguished road

      0  

    Default


    Quote Originally Posted by taronja View Post
    Hi,

    I still have a problem with the icon images at the filter menu. In FF or Chrome it renders perfect but in IE I can't see the menu images. There're some solutions to that issue in the older version but don't apply to the current.
    Any idea?

    Internet Explorer


    Firefox
    anybody helps?

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)