----------------------------------------------------------------------下拉框(ComboBox)
说明:利用组件的render()函数,把组件渲染到指定的dom元素中。
Ext.onReady(function() {
var planStore = new Ext.data.JsonStore({
root: 'rows',
totalProperty: 'total',
idProperty: 'guid',
remoteSort: false,
pruneModifiedRecords: true,
region: 'center',
fields: ['guid', 'title', 'type','content','noticestatus','noticeusers','noticedate'],
proxy: new Ext.data.HttpProxy({
url: 'evaluation_Plan!list.action'
})
});
var planCombox = new fm.ComboBox({
id: 'planid',
autoLoad: true,
mode: 'local',
triggerAction: 'all',
store:planStore,
lazyRender: true,
valueField: 'guid',
displayField: 'title',
forceSelection: true,
value: '0BA3A6EC115D4990A80347FE63E3212F',
width: 80,
listeners: {
select: function() {
//reload();
}
}
});
//luozhiping:渲染到dom元中
planCombox.render('plan');
});
说明:利用组件的render()函数,把组件渲染到指定的dom元素中。
Ext.onReady(function() {
var planStore = new Ext.data.JsonStore({
root: 'rows',
totalProperty: 'total',
idProperty: 'guid',
remoteSort: false,
pruneModifiedRecords: true,
region: 'center',
fields: ['guid', 'title', 'type','content','noticestatus','noticeusers','noticedate'],
proxy: new Ext.data.HttpProxy({
url: 'evaluation_Plan!list.action'
})
});
var planCombox = new fm.ComboBox({
id: 'planid',
autoLoad: true,
mode: 'local',
triggerAction: 'all',
store:planStore,
lazyRender: true,
valueField: 'guid',
displayField: 'title',
forceSelection: true,
value: '0BA3A6EC115D4990A80347FE63E3212F',
width: 80,
listeners: {
select: function() {
//reload();
}
}
});
//luozhiping:渲染到dom元中
planCombox.render('plan');
});