combobox里已经有数据了
如题,帮忙,谢谢
如果你用的是2.*版,则
combo.store.add(record);
如果你用的是3.0版,则
combo.store.add(record);
combo.getStore().add(record);
注:以上的add()方法,也可以用insert()替换
具体查看API
对combo.store进行操作
[code="java"]
combobox.getStore().insert( Number index, Ext.data.Record records )
触发添加事件时插入records到指定的store位置 Inserts...
触发添加事件时插入records到指定的store位置 Inserts Records into the Store at the given index and fires the #add event.
参数项:
index : Number
传入的Records插入的开始位置 index The start index at which to insert the passed Records.
records : Ext.data.Record
加入到缓存中的Ext.data.Record对象(Ext.data.Record[])。 records An Array of Ext.data.Record objects to add to the cache.
返回值:
void
[/code]