1. #911
    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!

  2. #912
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    853
    Vote Rating
    2
    wm003 is on a distinguished road

      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);
                }
            }
        }); 

  3. #913
    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

  4. #914
    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

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

      0  

    Default Excuse me

    Excuse me


    The Store is Xml ..............

    //Store degli Utenti
    var storeIscritti = new Ext.data.XmlStore({
    url: '../ajaxUsers.asmx/getAnagrafica',
    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
    });
    Ing theMAdPumpkin

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

      0  

    Default Can I have an example of gridfilter plugins with xml store ??

    Can I have an example of gridfilter plugins with xml store ??


    therewould be very grateful
    Ing theMAdPumpkin

  7. #917
    Sencha User
    Join Date
    Dec 2011
    Posts
    2
    Vote Rating
    0
    tksko is on a distinguished road

      0  

    Default Request

    Request


    hi!
    I am using this great plugin but i need for date fields to filter with time too (TimeStamp). Is it possible?

    thanks

  8. #918
    Sencha User
    Join Date
    Jul 2012
    Posts
    1
    Vote Rating
    0
    cleydsonjr is on a distinguished road

      0  

    Default Resource missing on the example file

    Resource missing on the example file


    I downloaded the source zip 0.2.8. But in order to make it work i had to add the ListMenu.js to the index.html list of scripts.