-
28 Dec 2011 8:07 AM #911
Hello!
How can I get the latest version of Grid Filter for Ext JS 4?
Thank you in advance!
-
2 Jan 2012 1:41 AM #912
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 i = 0; i < colCount; i++){
if(cm.config[i].fixed !== true && cm.config[i].hideable !== false){
this.colMenu.add(new Ext.menu.CheckItem({
id: "col-"+cm.getColumnId(i),
text: cm.getColumnHeader(i),
checked: !cm.isHidden(i),
hideOnClick:false,
disabled: cm.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);
}
}
});
Extensions:
Ext.ux.DatePickerPlus (Multimonth,Multiselect,...)
Ext.ux.menu.StoreMenu - Ajax Store as menu-item config
Extended Window - Aero Shadows, nested grayscaled modal windows
Ext.MessageBox.promptCombo/promptRadio/promptCheckbox
Ext.ux.plugin.triggerfieldTooltip (for Comboboxes, Datefields...)
Ext.util.MD5
Ext.util.Utf8 (encode/decode)
Ext.util.base64 (encode/decode)
Using:
ExtJS 3.4.1.1/4.2
XPsp3/W7sp1
IE8/9/10
FF 20
Chrome 26
-
16 Jan 2012 7:03 AM #913
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 doIng theMAdPumpkin
-
16 Jan 2012 7:53 AM #914
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
-
16 Jan 2012 7:54 AM #915
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
-
18 Jan 2012 12:53 AM #916
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
-
31 May 2012 5:08 AM #917
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
-
10 Jul 2012 5:49 AM #918
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.


Reply With Quote