1. #411
    Sencha User
    Join Date
    Jun 2007
    Posts
    21
    Vote Rating
    0
    Twain is on a distinguished road

      0  

    Question List filter options - dynamic loading

    List filter options - dynamic loading


    First, congratulations Ambience, this is a great plugin!. Thanks for this excelent contribution.
    I

  2. #412
    Ext JS Premium Member ambience's Avatar
    Join Date
    Mar 2007
    Location
    Denver, CO
    Posts
    136
    Vote Rating
    0
    ambience is on a distinguished road

      0  

    Default


    Thanks,

    The List type filter takes a 'store' option that allows you to provide the menu with a store that is loaded on show. Be sure that the records have their id properties set correctly and that the store either contains a field called 'text' or that you set the 'labelField' config value to the field you wish the labels to be generated from.

  3. #413
    Ext User
    Join Date
    Mar 2008
    Posts
    25
    Vote Rating
    0
    steppinrazor is on a distinguished road

      0  

    Cool Not saving state in IE6

    Not saving state in IE6


    Ambience did you realize that the filter demo does not save state in IE 6? This was a surprise to me, what do you think?

  4. #414
    Sencha Premium Member
    Join Date
    May 2007
    Location
    USA
    Posts
    73
    Vote Rating
    0
    notjoshing is on a distinguished road

      0  

    Default


    In my data grid, I differentiate between data types such as "int" and "float". To use your filters with these types, I modified GridFilters.js, and figured I'd put the code here in case anyone needs to do similar handling:

    PHP Code:
       getFilterClass: function(type){
            
    /*customizations to handle data types*/
            
    if( type=='int' || type=='float' ) {
                
    type 'numeric';
            }
            return 
    Ext.ux.grid.filter[type.substr(01).toUpperCase() + type.substr(1) + 'Filter'];
        } 
    Josh

  5. #415
    Sencha Premium Member
    Join Date
    May 2007
    Location
    USA
    Posts
    73
    Vote Rating
    0
    notjoshing is on a distinguished road

      0  

    Default


    In RangeMenu.js, you've a typo in the declaration of the fields variable in 0.2.6. When declaring the field configuration, you give this:

    PHP Code:
    'eq': new Ext.ux.menu.EditableItem({
                
    icon:   this.icons.eq
                
    editor: new cls(typeof cfg == "object" cfg.gt || '' cfg)}) 
    What you want, I think, is this

    PHP Code:
    'eq': new Ext.ux.menu.EditableItem({
                
    icon:   this.icons.eq
                
    editor: new cls(typeof cfg == "object" cfg.eq || '' cfg)}) 
    Josh

  6. #416
    Sencha Premium Member
    Join Date
    May 2007
    Location
    USA
    Posts
    73
    Vote Rating
    0
    notjoshing is on a distinguished road

      0  

    Default Edited RangeMenu.js

    Edited RangeMenu.js


    I found that people using my site often wanted to combine "equals" and "not equals" searches for numeric data. They also wanted to be able to use wild cards, so you could do a LIKE search, such as for "123*456.7*". In the attached edited version of RangeMenu.js, I incorporate both of these, based on 0.2.6.

    I'll upload similar functionality for strings soon.

    Josh

    Edit: A couple things I forgot to mention:
    * The code here presumes you're doing server-side filtering. To handle this in the browser, you'd need to add some regular expressions to the validation code in NumericFilter.js
    * I should have uploaded the PNG I'm using for this as well. It's basically just a combination of the greater than and less than pngs, stitched together.
    Attached Files
    Last edited by notjoshing; 26 Apr 2008 at 10:30 PM. Reason: Forgot the png.

  7. #417
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    886
    Vote Rating
    8
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by notjoshing View Post
    I'll upload similar functionality for strings soon.
    That would be really nice! Thank you for sharing!

  8. #418
    Ext User
    Join Date
    Apr 2008
    Posts
    2
    Vote Rating
    0
    m0nu is on a distinguished road

      0  

    Smile


    thanks for this plugin! realy great job...

  9. #419
    Sencha Premium Member
    Join Date
    May 2007
    Location
    USA
    Posts
    73
    Vote Rating
    0
    notjoshing is on a distinguished road

      0  

    Default


    I plugged away a bit today on adding NOT EQUAL TO functionality (ne) to the string and numeric filters. Here's a summary of changes:

    [LIST][*][B]
    Attached Files

  10. #420
    Ext User
    Join Date
    Aug 2007
    Location
    Moscow, Russia
    Posts
    47
    Vote Rating
    0
    pic_Nick is on a distinguished road

      0  

    Lightbulb


    Hello ambience!
    This is really great work, but unfortunatly it is not localization-friendly, so I suggest you to make some changes:
    In GridFilter.js
    Code:
    ...
    	showMenu: true,
      
    	filtersText: 'Filters',
    
    	init: function(grid){
    ...
    	onRender: function(){
    		var hmenu;
    		
    		if(this.showMenu){
    			hmenu = this.grid.getView().hmenu;
    			
    			this.sep  = hmenu.addSeparator();
    			this.menu = hmenu.add(new Ext.menu.CheckItem({
    					text: this.filtersText,
    					menu: new Ext.menu.Menu()
    				}));
    			this.menu.on('checkchange', this.onCheckChange, this);
    			this.menu.on('beforecheckchange', this.onBeforeCheck, this);
    				
    			hmenu.on('beforeshow', this.onMenu, this);
    		}
    		
    		this.grid.getView().on("refresh", this.onRefresh, this);
    		this.updateColumnHeadings(this.grid.getView());
    	},
    ...
    In BooleanFilter.js
    Code:
    Ext.ux.grid.filter.BooleanFilter = Ext.extend(Ext.ux.grid.filter.Filter, {
      defaultValue: false,
      
      yesText: 'Yes',
      noText: 'No',
    
    	init: function(){
        var gId = Ext.id();
    		this.options = [
    			new Ext.menu.CheckItem({text: this.yesText, group: gId, checked: this.defaultValue === true}),
    			new Ext.menu.CheckItem({text: this.noText, group: gId, checked: this.defaultValue === false})];
    		
    		this.menu.add(this.options[0], this.options[1]);
    ...
    In DateFilter.js
    Code:
    Ext.ux.grid.filter.DateFilter = Ext.extend(Ext.ux.grid.filter.Filter, {
    	dateFormat: 'm/d/Y',
    	pickerOpts: {},
      
      beforeText: 'Before',
      afterText: 'After',
      onText: 'On',
    	
    	init: function(){
    		var opts = Ext.apply(this.pickerOpts, {
    			minDate: this.minDate, 
    			maxDate: this.maxDate, 
    			format:  this.dateFormat
    		});
    		var dates = this.dates = {
    			'before': new Ext.menu.CheckItem({text: this.beforeText, menu: new Ext.menu.DateMenu(opts)}),
    			'after':  new Ext.menu.CheckItem({text: this.afterText, menu: new Ext.menu.DateMenu(opts)}),
    			'on':     new Ext.menu.CheckItem({text: this.onText, menu: new Ext.menu.DateMenu(opts)})};
    				
    		this.menu.add(dates.before, dates.after, "-", dates.on);
    ...
    With best regards.
    The first bird may get a worm but the second mouse will get the cheese.

Thread Participants: 313

  1. jack.slocum (1 Post)
  2. JeffHowden (8 Posts)
  3. VinylFox (1 Post)
  4. ericwaldheim (1 Post)
  5. franklt69 (2 Posts)
  6. galdaka (5 Posts)
  7. jay@moduscreate.com (1 Post)
  8. ejetorix (1 Post)
  9. Wolfgang (1 Post)
  10. alien3d (1 Post)
  11. tobi (1 Post)
  12. HarryC (1 Post)
  13. vmorale4 (3 Posts)
  14. gmoney (1 Post)
  15. ReyBango (1 Post)
  16. mystix (5 Posts)
  17. fangzhouxing (1 Post)
  18. cobnet (7 Posts)
  19. mike1993 (1 Post)
  20. JorisA (9 Posts)
  21. krdavis (1 Post)
  22. tarnawska (3 Posts)
  23. simonellistonball (1 Post)
  24. Foggy (1 Post)
  25. jack (4 Posts)
  26. Illiarian (3 Posts)
  27. cocorossello (4 Posts)
  28. rlieving (2 Posts)
  29. violinista (1 Post)
  30. Fabyo (1 Post)
  31. efiebba (2 Posts)
  32. notjoshing (5 Posts)
  33. akannu (2 Posts)
  34. Troy Wolf (7 Posts)
  35. AlxH (8 Posts)
  36. pantarhei (1 Post)
  37. tobiu (5 Posts)
  38. kesteb (5 Posts)
  39. ajaxE (11 Posts)
  40. robasi (2 Posts)
  41. dandfra (1 Post)
  42. ethan (1 Post)
  43. krycek (1 Post)
  44. ronnin (1 Post)
  45. Twain (2 Posts)
  46. Phunky (2 Posts)
  47. ostghost (2 Posts)
  48. tdikarim (2 Posts)
  49. chernomorez (6 Posts)
  50. 6epcepk (6 Posts)
  51. marceloprietos (1 Post)
  52. mjlecomte (55 Posts)
  53. andrei.neculau (2 Posts)
  54. catof (3 Posts)
  55. rednix (1 Post)
  56. george.antoniadis (1 Post)
  57. MatjazH (1 Post)
  58. Zyclops (5 Posts)
  59. gfernandez (2 Posts)
  60. boyjunqiang (2 Posts)
  61. hendricd (106 Posts)
  62. jelt (5 Posts)
  63. nonamebrand (1 Post)
  64. sidaliextjs (1 Post)
  65. watrboy00 (2 Posts)
  66. hermeslm (1 Post)
  67. pic_Nick (3 Posts)
  68. cherbert (1 Post)
  69. elrems (1 Post)
  70. Clever Cutter (4 Posts)
  71. kfuglsang (1 Post)
  72. aresot (1 Post)
  73. stradej (1 Post)
  74. Shmoo (4 Posts)
  75. evilized (1 Post)
  76. reaper.br (9 Posts)
  77. froamer (3 Posts)
  78. GraemeBryce (2 Posts)
  79. osamaao (1 Post)
  80. burned (1 Post)
  81. hb562100 (1 Post)
  82. lyardson (1 Post)
  83. lupin85.luca (5 Posts)
  84. thatcoder (4 Posts)
  85. bhomass (1 Post)
  86. jojo_i (3 Posts)
  87. wm003 (10 Posts)
  88. debutant (2 Posts)
  89. peio72 (4 Posts)
  90. b0c1 (1 Post)
  91. highmemory (1 Post)
  92. nedkopenev (1 Post)
  93. durlabh (1 Post)
  94. deependhulla (1 Post)
  95. elDub (2 Posts)
  96. fendrikat (1 Post)
  97. olive38 (5 Posts)
  98. Morris (1 Post)
  99. nnextjs (1 Post)
  100. smartlit (1 Post)
  101. paliwalg (2 Posts)
  102. maureend (1 Post)
  103. crxtech (4 Posts)
  104. alexi (1 Post)
  105. Sesshomurai (4 Posts)
  106. oldroy (1 Post)
  107. sjerry (1 Post)
  108. KGL (2 Posts)
  109. cbandes (1 Post)
  110. vertigoMX (2 Posts)
  111. tfrugia (2 Posts)
  112. stevets (1 Post)
  113. DevNullBinary (1 Post)
  114. rfjacobsen (1 Post)
  115. gameshints (1 Post)
  116. arya009 (2 Posts)
  117. adinata (4 Posts)
  118. sanjshah (2 Posts)
  119. jlagedo (1 Post)
  120. 1900 (1 Post)
  121. eliasp (4 Posts)
  122. sethladd (2 Posts)
  123. mariposil (4 Posts)
  124. dearsina (6 Posts)
  125. plima (1 Post)
  126. edweb (1 Post)
  127. caturstudio (1 Post)
  128. RacingTomcat (1 Post)
  129. larowlan (2 Posts)
  130. marco76 (1 Post)
  131. dterle (1 Post)
  132. julienp (2 Posts)
  133. franck34 (1 Post)
  134. calavera (6 Posts)
  135. markshih (1 Post)
  136. dmhost (1 Post)
  137. LeonardoAP (7 Posts)
  138. mikeasi (5 Posts)
  139. ybshyz (1 Post)
  140. basshcm (1 Post)
  141. mrollins (5 Posts)
  142. Ant1105 (1 Post)
  143. sinma (1 Post)
  144. mfrancey (7 Posts)
  145. zonereseau (1 Post)
  146. mjhaston (12 Posts)
  147. enterco (2 Posts)
  148. mattb (1 Post)
  149. nunziofiore (6 Posts)
  150. denkoo (1 Post)
  151. rafeekphp (1 Post)
  152. luv2hike (3 Posts)
  153. drieraf (2 Posts)
  154. tmartinez (3 Posts)
  155. techwolf (1 Post)
  156. sabiola (2 Posts)
  157. marmots (1 Post)
  158. jarofclay (2 Posts)
  159. snow (1 Post)
  160. spectrus (1 Post)
  161. razvanioan (5 Posts)
  162. johnsbrn (5 Posts)
  163. xp743 (1 Post)
  164. jbd007 (3 Posts)
  165. mikemc (1 Post)
  166. technicaltitch (1 Post)
  167. steppinrazor (4 Posts)
  168. alconeijr (3 Posts)
  169. Steffen Hiller (5 Posts)
  170. keckeroo (1 Post)
  171. jineshkunnath (1 Post)
  172. reminder (3 Posts)
  173. Arthur.Blake (1 Post)
  174. manilodisan (1 Post)
  175. Chemist (1 Post)
  176. tuxz0r (1 Post)
  177. azbok (5 Posts)
  178. pil0t (1 Post)
  179. Treefrog (1 Post)
  180. polgara (1 Post)
  181. Remy (8 Posts)
  182. nizarsm (2 Posts)
  183. cesarwbr (1 Post)
  184. m0nu (1 Post)
  185. FireGlow (1 Post)
  186. jrh (1 Post)
  187. vladok (1 Post)
  188. el_dark (1 Post)
  189. Canard64 (1 Post)
  190. radustefan (1 Post)
  191. cgs1999 (1 Post)
  192. joshjdevl (1 Post)
  193. eleseint (1 Post)
  194. Efex (2 Posts)
  195. Rotomaul (1 Post)
  196. renoye (3 Posts)
  197. mahendragayatri (1 Post)
  198. SoreGums (3 Posts)
  199. chrisevans123 (1 Post)
  200. businessman332211 (37 Posts)
  201. Michael Reach (1 Post)
  202. kristalgic (1 Post)
  203. wiznia (1 Post)
  204. imnphd (1 Post)
  205. gido.carper (1 Post)
  206. gxt (2 Posts)
  207. sami_user (5 Posts)
  208. martinorth (1 Post)
  209. benmclendon (1 Post)
  210. crackrock (1 Post)
  211. Bodom78 (3 Posts)
  212. shahram (2 Posts)
  213. jjshoe (7 Posts)
  214. robertp42 (2 Posts)
  215. nicola_java (1 Post)
  216. paulwang727 (1 Post)
  217. mcantrell (1 Post)
  218. Huuuze (1 Post)
  219. irwanex (1 Post)
  220. ddouden (1 Post)
  221. skaue (3 Posts)
  222. Bucs (1 Post)
  223. kinchyle (1 Post)
  224. foxmarco (1 Post)
  225. ralfhammer (1 Post)
  226. Finity (1 Post)
  227. dmolesky (1 Post)
  228. dreas (1 Post)
  229. oliverseitz (1 Post)
  230. Wohlrajh (1 Post)
  231. phola (2 Posts)
  232. cvasilak (1 Post)
  233. quen567 (2 Posts)
  234. youdie (1 Post)
  235. cmschick (3 Posts)
  236. SunWuKung (1 Post)
  237. rickystra (2 Posts)
  238. inptisto (1 Post)
  239. extjs_new (1 Post)
  240. igor_vlad (1 Post)
  241. jeanvincent (1 Post)
  242. ScottLoney (1 Post)
  243. axpa (1 Post)
  244. rondinos (1 Post)
  245. dgubber (1 Post)
  246. schturdark (1 Post)
  247. MehdiSZ (2 Posts)
  248. Datagenn (1 Post)
  249. Mr. Hibernate (1 Post)
  250. geo_cris_ro (1 Post)
  251. freepopo (1 Post)
  252. leopku (1 Post)
  253. zyon (2 Posts)
  254. azaqero (2 Posts)
  255. spiderweb (2 Posts)
  256. LeviOu (1 Post)
  257. zkhalid (3 Posts)
  258. puyngke (1 Post)
  259. IrishSitar (1 Post)
  260. Daina (1 Post)
  261. heho2495 (1 Post)
  262. Andreas B. (2 Posts)
  263. chaoszcat (3 Posts)
  264. a.ti (2 Posts)
  265. coriolis (4 Posts)
  266. Thomas Triplet (3 Posts)
  267. thiner (1 Post)
  268. arkrohne (3 Posts)
  269. The Transporter (2 Posts)
  270. msinn (8 Posts)
  271. euphORIA (4 Posts)
  272. maznaz (1 Post)
  273. jankshtt (1 Post)
  274. small dragon (1 Post)
  275. msubbareddy (1 Post)
  276. djarquin (3 Posts)
  277. untwist (1 Post)
  278. xrx215 (1 Post)
  279. scblue (1 Post)
  280. jmilton59 (2 Posts)
  281. pbuser (1 Post)
  282. pmdarrow (1 Post)
  283. zozzi (1 Post)
  284. fabsen2102 (1 Post)
  285. Ebpo (1 Post)
  286. alexpotemkin (1 Post)
  287. Reimius (5 Posts)
  288. ebinfo (2 Posts)
  289. kellyjohn.carney (1 Post)
  290. abed_216 (1 Post)
  291. warmi01 (1 Post)
  292. Dmoney (1 Post)
  293. jago7372 (1 Post)
  294. softwareengineer (1 Post)
  295. DBorrega (1 Post)
  296. luisoswaldo (2 Posts)
  297. vrakesh_20 (1 Post)
  298. Skelv (2 Posts)
  299. israel.galan (5 Posts)
  300. pamelablalock (1 Post)
  301. pramodkhare (1 Post)
  302. EDFGRENOBLE (2 Posts)
  303. norbe (1 Post)
  304. Shobhit Rastogi (1 Post)
  305. hachie (1 Post)
  306. budaxlingga (2 Posts)
  307. ing.amdangelo (4 Posts)
  308. donremigio (1 Post)
  309. vbreader (1 Post)
  310. ecko (1 Post)
  311. tksko (1 Post)
  312. avorobjovs (1 Post)
  313. cleydsonjr (1 Post)

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar