list - How to show a default selecteditem in a flex combobox -


in flex application how display default selecteditem dataprovider of combobox.

i'm using {staticdataholder.currencylist}.

for example: have show india should selected default list.

where india 1 of value in currencylist.

all suggestions welcome.

thank you.

you need loop through dataprovider , set selected object:

example:

for each ( var obj:object in staticdataholder.currencylist ) {     if ( obj == "india" ) {         cbx.selecteditem = obj;         break;     } } 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -