javascript - GridPanel doesn't show store and filters -


I have a gridpanel with 5 columns, I put filter: true in each row But this filter will not show the option and the store will not show the item, I will see two rows, but they are empty.

SaltVaguardas = [['codigo': '10', 'tipoDocumento': 'Final', 'Donominecion': 'Documentary de Praia', 'Version': '2', 'Descriptification ':' Eso '}, {codeogo:' 10 ',' tip documento ':' finals', 'dinominacion': 'document de pruba', 'version': '2', 'descripcion': 'eso'} ]; Grid = New Ext.grid.GridPanel ({store: storeSalvaguardas, required: ['Ext.grid.filters.Filters'], id: 'tablaGrid', trackMouseOver: true, column: [{id: 'codigo', header : '& Lt; Bean: Message key = "label.agr.informes.codigo" />, width: 10, sortable: true, dataIndex:' codigo ', filter: true}, {id:' tDoc ', header: & Lt; Bean: Message key = "label.gi.productos.tipo" />, width: 10, sortable: true, dataIndex: 'tipoDocumento', filter: true}, {id: 'nombre', header: ' & Lt; bean: message key = "label.extionRecursos.criterios.busqueda.tab1" />, width: 15, sorted: right, datindex: 'dinominecion', filter: true}, {id: 'version' Title: 'Bean: Message Key = "label.gd.tab1.version" />,, Dai: 10, sorted: true, datindex: 'version', filter: true}, {id: 'descripcion', header: '& lt; bean: message key = "label.gd.tab3.anexos.columna.descripcion" / '', Width: 55, sorted: incorrect, data index: 'descripcion', filter: true}], bbar: ['bean: message key = "label.agr.dobleclic.modificar" /> ], Region: 'center', stripeRows: true, title: '& lt; Bean: Message key = "label. AGR.analisisgr.listadodocs" />, frame: true, layout: 'fit', range: correct, load mask: new extension.loadmask (Ext.getBody (), {Msg : '& Lt; bean: message key = "normal.label cargando" /> gt;'), bullet: right, style: 'text-align: left;',});

Here is the result: Enter image details here

What am I doing wrong? Thanks in advance.

I believe filtering is applied at the level.

With the example: A snippet from the document is given here:

Filtering and Sorting

Store the Sort Can be filtered and filtered - In both cases, sorters and filters are organized locally or locally within mixed collection instances, making them easy to manage. Typically this is enough to specify the sorters and filters in the store configuration or call sort or filter:

  var store = Ext.create ('Ext.data.Store ', [Model:' Users ', Sourters: [Property:' Age ', Direction:' DESC '], {Property:' First Name ', Direction:' ASC '}], Filters: [[Property:' First Name ', Value: / ED}}}});  

The new store will keep the sortors and filters configured in the compiled collection examples mentioned above. By default, both sorting and filtering are performed locally by the store - to allow the server to perform these operations to see remote sort and remote filters.

Filtering and sorting is done immediately after the store. It is also easy Calling Adds another filter to the filter store and filters the dataset (Calling filters without any arguments, only all existing Filter re-applied).

  store.filter ('eyeColor' 'Brown');  

Object does not have a property, so I do not think you can do this.

I create a form on top or grid along with filter options specifically for special areas. This is one.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -