gird header invisible!!
but, when mouse onover header was appear
var locationmap_col = new Ext.grid.ColumnModel([
{header: "id", width: 40, sortable: true,type: 'string', dataIndex: 'lid' },
{header: 'continent', width: 150, sortable: true, dataIndex: "ltcontinent"},
{header: "country", width: 250, sortable: true, dataIndex: "ltcountry"},
//{header: "ภาค", width: 130, sortable: true, type: 'string',dataIndex: 'ltregion'},
//{header: "จังหวัด", width: 150, sortable: true, type: 'string',dataIndex: 'ltprovince'}
{header: 'province', width: 140, sortable: true, type: 'string',dataIndex: 'ltprovince'},
//{header: "
{header: "district", width: 150, sortable: true, type: 'string',dataIndex: 'ltdistrict'}
//{header: "
//{header: "
])
locationmap_col.defaultSortable = true;
var locationmap_ds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: './process/location/location_ps.php?task=search',
method: 'GET'
}),
reader: new Ext.data.JsonReader({
root: 'topics',
totalProperty: 'totalCount',
id: 'LID'
}, [
{name: 'lid', mapping: 'LID'},
{name: 'ltcontinent', mapping: 'LTCONTINENT'},
{name: 'ltcountry', mapping: 'LTCOUNTRY'},
{name: 'ltregion', mapping: 'LTREGION'},
{name: 'ltprovince', mapping: 'LTPROVINCE'},
{name: 'ltdistrict', mapping: 'LTDISTRICT'},
{name: 'ltsubdistrict', mapping: 'LTSUBDISTRICT'},
{name: 'ltstreet', mapping: 'LTSTREET'}
])
});
locationmap_ds.on ("beforeload", function () {
val = document.getElementById('in').checked;
if(val){
val = 'in';
locationmap_ds.baseParams = {
type:val,
region: region_cmb.getValue(),
province: province_in_cmb.getValue(),
district: district_in_cmb.getValue(),
subdistrict: subdistrict_cmb.getValue(),
street: street_cmb.getValue()
}
}else{
val = 'out';
locationmap_ds.baseParams = {
type:val,
continent: continent_cmb.getValue(),
country : country_cmb.getValue(),
province: province_out_cmb.getValue(),
district: district_out_cmb.getValue()
}
}
});
var locationmap_grid = new Ext.grid.GridPanel({
title:'Location Map',
store: locationmap_ds,
height: 300,
width: 750,
stripeRows :true,
loadMask: true,
cm: locationmap_col,
loadMask: true,
bbar: new Ext.PagingToolbar({
pageSize: 20,
store: locationmap_ds,
displayInfo: true,
displayMsg: 'to see {0} - {1} of {2}',
emptyMsg: "No topics to display"
})
});
knowledgeable help me
are you using custom css?
copy my code to compile :)
#If you have any other info about this subject , Please add it free.# |