PDA

View Full Version : [Solved] IE?EditorGridPanel????????????



kuro
8 Jun 2009, 10:40 PM
??????????????1??????????????EditorGridPanel ??????

FireFox?????????????????????IE6?IE7??????????????2??????????????????????????

??????????????????EditorGridPanel??viewConfig?????????????
???????????????????????????????????????????????IE??????????????????

viewConfig : { forceFit: true }?????????????????????????
????????????????????????

????????????????


var store = new Ext.data.SimpleStore({
fields: [
{ name: 'name', type: 'string' },
{ name: 'section', type: 'string' },
{ name: 'post', type: 'string' },
{ name: 'age', type: 'int' }
],
data: [
['?? ??', '???', '??', 48],
['?? ??', '???', '??', 36],
['?? ??', '???', '??', 24],
['?? ??', '???', '??', 43],
['?? ??', '???', '??', 39],
['?? ??', '???', '??', 29],
['?? ??', '???', '??', 51],
['?? ??', '???', '??', 35],
['?? ???', '???', '??', 23]
]
});

var cols = [
new Ext.grid.RowNumberer(),
{ header: "??", dataIndex: "name", sortable: true, editor: new Ext.form.TextField() },
{ header: "??", dataIndex: "section", sortable: true, editor: new Ext.form.TextField() },
{ header: "??", dataIndex: "post", sortable: true, editor: new Ext.form.TextField() },
{ header: "??", dataIndex: "age", sortable: true, editor: new Ext.form.NumberField() }
];

var grid = new Ext.grid.EditorGridPanel({
title: "?????",
collapsible: true,
store: store,
columns: cols,
width: 600,
height: 400,
viewConfig: { forceFit: true }, // ?????????
clicksToEdit: 1,
renderTo: "container"
});

yuki
9 Jun 2009, 12:18 AM
???????????

http://extjs.com/forum/showthread.php?p=297096#post297096

kuro
9 Jun 2009, 12:26 AM
yuki ????????????????????
??????????????????????????????????????
????????????