PDA

View Full Version : grid value doesn't visible after clicking header column



y0uzha
9 Jul 2015, 11:26 PM
hi i have gridpanel like this

52828
my problem is, the value or the row of that grid just want to visible after i clicking something in the header of that grid.
anyone can help me please.?

this is my code:


var gridFilter = Ext.create('Ext.grid.Panel', {
title: 'Filter',
id:'gridPanelFilter',
store: filterStore,
viewConfig:
{
markDirty: false
}
,
columns:
[
{header: '', width:25, dataIndex: 'starts', editor:{xtype: 'combobox', store: start, queryMode: 'local', displayField: 'starts', valueField: 'starts'}},
{header: '', width:35, dataIndex: 'nots', editor:{xtype: 'combobox', store: not, queryMode: 'local', displayField: 'nots', valueField: 'nots'}},
{header: 'field', width:200, dataIndex: 'fields', editor:{xtype: 'combobox', store: griddatafields, queryMode: 'local', displayField: 'fields', valueField: 'fields'}},
{header: 'operation', width:125, dataIndex: 'operation', editor:{xtype: 'combobox', store: storeOperation, queryMode: 'local', displayField: 'operation', valueField: 'operation'}},
{header: 'value', width:180, dataIndex: 'fields2', editor:{xtype: 'combobox', store: griddatafields2, queryMode: 'local', displayField: 'fields2', valueField: 'fields2'}},
{header: '', dataIndex: 'ends', width:25, editor:{xtype: 'combobox', store: end, queryMode: 'local', displayField: 'ends', valueField: 'ends'}},
{header: 'logic', width:120, dataIndex: 'logic', editor:{xtype: 'combobox', store: logic, queryMode: 'local', displayField: 'logic', valueField: 'logic'}}
],
selType: 'cellmodel',
plugins: [editFilter],
height: 400,
width: 800
});


var group_filter_where = Ext.create('Ext.Panel', {
title: 'Filter & Where Clause',
closable: false,
//layout: "fit",
autoScroll: true,
width: 1430,
heigth: 450,
items : [
{
xtype : 'container',
layout : "column",
autoScroll: true,
items : [
{
xtype:'form',
height : 600,
autoScroll: true,
columnWidth : .5,
items : [gridFilter]
},
{
xtype:'form',
}
]
},
]
});

chamacs
10 Jul 2015, 6:55 AM
Hard to tell with this code. Issues I see:
- Overnesting of containers
- Incorrect/missing layout configs

Can you post an example on a fiddle (https://fiddle.sencha.com/#home)?
Thanks.