Hi,

Im creating a comboBox for which i want to set the First Element in the View as the Default selection.. I tried combo.select(0), but i get an error that reads "this.view has no properties"..
I tried creating a dataView, associating with the store im using and assigned it to the comboBox im using, combo.view(myDataView), but din work, as the dataView is not rendered..
How to go abt this..Plz help..

<code>
//Store
var store = new Ext.data.SimpleStore({
fields: ['item', 'action'],
data : CItems
});

//combo
var combo = new Ext.form.ComboBox({
store: store,
displayField:'item',
applyTo: 'combo-action',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Select an action...',
selectOnFocus:true,
resizable:true,
listeners:{
select:{
fn:function(combo, record, index) {
var qq= record.get('action').valueOf();
eval(qq+'('+')');
}}
}
});

//This doesnt work. says "this.view has no properties"
combo.select(0, true);
</code>


Cheers,
Vishnupriya