Code:
Debug1_Store = new Ext.data.JsonStore( {
url: './Json/debugtest.php',
root: 'rows',
totalProperty: 'total',
autoDestroy: true,
storeId: 'Debug1_Store_id',
fields: [
{ name: 'data1', type: 'timestamp', dateFormat:'Y/m/d H:i:s' },
{ name: 'data2', type: 'string', sortType: Ext.data.SortTypes.asInt },
{ name: 'data3', type: 'string', sortType: Ext.data.SortTypes.asInt },
・・・・
{ name: 'data48', type: 'string', sortType: Ext.data.SortTypes.asInt },
{ name: 'data49', type: 'string', sortType: Ext.data.SortTypes.asInt },
{ name: 'data50', type: 'string', sortType: Ext.data.SortTypes.asInt }
]
});
Debug1_Store.load({
autoLoad: true,
autoDestroy: true,
params: {
'action': 'list-all',
'a': 1,
'b': 1,
'c': 1
}
});
var column = new Ext.ux.grid.LockingColumnModel( {
columns: [ {
id: 'data1',
header: 'data1',
dataIndex: 'data1',
width: 140,
locked:false,
align:'left'
}, {
id: 'data2',
header: 'data2',
dataIndex: 'data2',
width: 100,
align: 'left'
}, {
id: 'data3',
header: 'data3',
dataIndex: 'data3',
width: 100,
align: 'left'
}, {
id: 'data4',
header: 'data4',
dataIndex: 'data4',
width: 100,
align: 'left'
・・・・・・
}, {
id: 'data48',
header: 'data48',
dataIndex: 'data48',
width: 100,
align: 'left'
}, {
id: 'data49',
header: 'data49',
dataIndex: 'data49',
width: 100,
align: 'left'
}, {
id: 'data50',
header: 'data50',
dataIndex: 'data50',
width: 100,
align: 'left'
}],
defaults: {
sortable: true
}
});
Debug1_Panel = new Ext.grid.GridPanel({
store: Debug1_Store,
id: 'Debug1_Panel ',
cm: column,
width: 800,
height: 500,
stripeRows: true,
view: new Ext.ux.grid.LockingGridView()
});
Debug1_Panel.render('debug1');