1. #901
    Sencha User
    Join Date
    May 2010
    Posts
    2
    Vote Rating
    0
    jago7372 is on a distinguished road

      0  

    Default


    Hi,
    please someone help me with filter icons appear over each other I am concerned ExtJS 3.1.1 thank....



    error_filtro.jpg

  2. #902
    Sencha User
    Join Date
    Aug 2009
    Posts
    15
    Vote Rating
    0
    jankshtt is on a distinguished road

      0  

    Default getfilter() and run the filter

    getfilter() and run the filter


    Hi,

    I am filter on a grid and I am trying to run the filter on it. I want o run the filter from code when a user selects a value from a drop down else where in the page.

    I see that grid.getFilter('dataIndex').setActive(true) is setting the filter active but i am not sure how to set the value. There is a methid called setValue() but it is a private methos. Is there any way i could do it.

    Thanks,
    Jankshtt

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

      0  

    Default save and restore DateFilter's state

    save and restore DateFilter's state


    I am saving and restoring a grid's state that includes a GridFilter.
    All works fine until a DateFilter is set in which case I get a value.clearTime is not a function error in DateFilter.js line 216 - this.fields[key].menu.picker.setValue(value[key]);

    I guess it's because the value is not a Date object and I can see that here it was suggested to use Date.parseDate - but since in my case the value is created by saving the same DateFilter's state I don't think this is an option here.

    How could I get this work?
    For the time being I am doing this in DateFilter.js and it seems to work, but any comment is welcome:

    setValue : function (value, preserve) {
    var key;
    for (key in this.fields) {
    if(value[key]){
    if (!Ext.isDate(value[key])){
    value[key]=Date.parseDate(value[key],this.dateFormat) ;
    }
    this.fields[key].menu.picker.setValue(value[key]);
    this.fields[key].setChecked(true);
    } else if (!preserve) {
    this.fields[key].setChecked(false);
    }
    }
    this.fireEvent('update', this);
    }
    Last edited by SunWuKung; 10 Oct 2011 at 2:10 AM. Reason: found a temp solution

  4. #904
    Sencha User
    Join Date
    Nov 2011
    Posts
    1
    Vote Rating
    0
    vbreader is on a distinguished road

      0  

    Default


    Quote Originally Posted by SunWuKung View Post
    I am saving and restoring a grid's state that includes a GridFilter.
    All works fine until a DateFilter is set in which case I get a value.clearTime is not a function error in DateFilter.js line 216 - this.fields[key].menu.picker.setValue(value[key]);

    I guess it's because the value is not a Date object and I can see that here it was suggested to use Date.parseDate - but since in my case the value is created by saving the same DateFilter's state I don't think this is an option here.

    How could I get this work?
    For the time being I am doing this in DateFilter.js and it seems to work, but any comment is welcome:
    Thank you for the code. It works like a charm.
    Last edited by vbreader; 7 Nov 2011 at 9:48 AM. Reason: forgot to quote

  5. #905
    Sencha User
    Join Date
    Oct 2011
    Posts
    3
    Vote Rating
    0
    donremigio is on a distinguished road

      0  

    Default


    Hi
    How I can hide from numeric filter equal field. I can delete from RangeMenu.js fields.eq, but I need to hide it only from search filter from one column in grid.

  6. #906
    Sencha User
    Join Date
    Nov 2011
    Posts
    4
    Vote Rating
    0
    ecko is on a distinguished road

      0  

    Default still no support for scrolling menus?

    still no support for scrolling menus?


    Quote Originally Posted by ambience View Post
    Yeah, I asked the Ext team about support for scrolling menus and they said not in this version >.<
    while i agree that too many menu items would be cumbersome, on screens with even moderately low resolution (1280 x), the column menu would extend past the bottom of the screen and be inaccessible with fewer columns than that. I would like to extend this to include a scrolling option. Where can i find the latest source?
    (see attached for example)
    Untitled-1.jpg

  7. #907
    Sencha User
    Join Date
    Dec 2011
    Posts
    5
    Vote Rating
    0
    avorobjovs is on a distinguished road

      0  

    Default


    Hello!

    How can I get the latest version of Grid Filter for Ext JS 4?

    Thank you in advance!

  8. #908
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    I am using this to display a scrollbar:
    PHP Code:
    Ext.override(Ext.grid.GridView, {
            
    beforeColMenuShow : function(){
                var 
    cm this.cm,  colCount cm.getColumnCount();
                
    this.colMenu.removeAll();
                for(var 
    0colCounti++){
                    if(
    cm.config[i].fixed !== true && cm.config[i].hideable !== false){
                        
    this.colMenu.add(new Ext.menu.CheckItem({
                            
    id"col-"+cm.getColumnId(i),
                            
    textcm.getColumnHeader(i),
                            
    checked: !cm.isHidden(i),
                            
    hideOnClick:false,
                            
    disabledcm.config[i].hideable === false
                        
    }));
                    }
                }
    //check height to possibly display a scrollbar
                
    var ccH Ext.lib.Dom.getViewHeight()-100;
                if (
    colCount*24>ccH) {
                    
    this.colMenu.getEl().setStyle("overflow-y""auto");
                    
    this.colMenu.getEl().setHeight(ccH);
                }
            }
        }); 

  9. #909
    Sencha User
    Join Date
    Sep 2011
    Location
    Maddaloni (CE) Italy
    Posts
    74
    Vote Rating
    1
    ing.amdangelo is on a distinguished road

      0  

    Default Remotely filtering

    Remotely filtering


    With this plugins is possibile filter remotely ???

    // Filtri per la griglia
    var filtroUtenti = new Ext.ux.grid.GridFilters({
    // encode and local configuration options defined previously for easier reuse
    encode: false, // json encode the filter query
    local: false, // defaults to false (remote filtering)
    menuFilterText: 'Filtri',
    filters: [{ type: 'string', dataIndex: 'cognome'},
    { type: 'string', dataIndex: 'nome' },
    { type: 'string', dataIndex: 'citta' },
    { type: 'numeric', dataIndex: 'numIscrizione' }
    ]
    });


    // Anagrafica degli Iscritti Nazionale e Provinciale




    var listaUtenti = new Ext.grid.GridPanel({
    id: 'lstUtenti',
    layout: 'fit',
    store: storeIscritti,
    loadMask: true,
    autoWidth: true,
    //hidden:true,
    stripeRows: true,
    selModel: listaUtentiRowSelModel,
    listeners: {
    rowcontextmenu: doContextMenuListaUtenti
    },
    bbar: toolbarGridUtenti,
    colModel: com,
    plugins: [filtroUtenti]
    });

    in additionto the property 'local' What elseshould I do
    Ing theMAdPumpkin

  10. #910
    Sencha User
    Join Date
    Sep 2011
    Location
    Maddaloni (CE) Italy
    Posts
    74
    Vote Rating
    1
    ing.amdangelo is on a distinguished road

      0  

    Default


    var storeIscritti = new Ext.data.JsonStore({
    url: '../ajaxUsers.asmx/getAnagraficaJson',
    baseParams: { _idAdmin: idAdmin, provincia: provincia, sort: 'cognome', dir: 'ASC', start: 0, limit: 100 },
    record: 'User',
    remoteSort:true,
    totalRecords: 'Totale',
    fields: ['idUser', 'cognome', 'nome', 'codiceFiscale', 'indirizzo', 'numIscrizione', 'citta', 'emailOrdinaria', 'emailPEC'],
    autoLoad:true
    });
    var com = new Ext.grid.ColumnModel({
    defaults: {
    sortable: true
    },
    columns: [
    { header: 'idUser', dataIndex: 'idUser', hidden: true },
    { header: 'Photo', dataIndex: 'emailPEC', width: 105, renderer: renderPhoto },
    { header: 'Cognome', dataIndex: 'cognome', width: 90 },
    { header: 'Nome', dataIndex: 'nome', width: 90 },
    { header: 'Codice Fiscale', dataIndex: 'codiceFiscale', width: 132 },
    { header: 'Indirizzo', dataIndex: 'indirizzo', width: 200 },
    { header: 'Citta', dataIndex: 'citta', width: 150 },
    { header: 'Num Iscrizione', dataIndex: 'numIscrizione', width: 80, align: 'center' },
    { header: 'email @ Ordinaria', dataIndex: 'emailOrdinaria', width: 100, hidden: true },
    { header: 'email @ PEC', dataIndex: 'emailPEC', width: 250 }
    ]
    });


    var listaUtentiRowSelModel = new Ext.grid.RowSelectionModel({
    singleSelect: true
    });




    // Filtri per la griglia
    var filtroUtenti = new Ext.ux.grid.GridFilters({
    // encode and local configuration options defined previously for easier reuse
    encode: true, // json encode the filter query
    local: false, // defaults to false (remote filtering)
    menuFilterText: 'Filtri',
    filters: [{ type: 'string', dataIndex: 'cognome' },
    { type: 'string', dataIndex: 'nome' },
    { type: 'string', dataIndex: 'citta' },
    { type: 'numeric', dataIndex: 'numIscrizione' }
    ]
    });




    //toolbar per la Paginazione
    var toolbarGridUtenti = new Ext.PagingToolbar({
    id: 'tbGridUtenti',
    pageSize: 100,
    plugins: [filtroUtenti],
    store: storeIscritti,
    displayInfo: true,
    displayMsg: 'Elementi visualizzati da {0} a {1} di {2}',
    emptyMsg: "Nessun elemento trovato"
    })





    // Anagrafica degli Iscritti Nazionale e Provinciale




    var listaUtenti = new Ext.grid.GridPanel({
    id: 'lstUtenti',
    layout: 'fit',
    store: storeIscritti,
    loadMask: true,
    autoWidth: true,
    //hidden:true,
    stripeRows: true,
    selModel: listaUtentiRowSelModel,
    listeners: {
    rowcontextmenu: doContextMenuListaUtenti
    },
    bbar: toolbarGridUtenti,
    colModel: com,
    plugins: [filtroUtenti]
    });

    Can i Obtain remote filtering ....... ???

    Help me please ??
    Ing theMAdPumpkin

Thread Participants: 312

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