null - Flex 4 Drop Down List - bound with data service, how to always keep prompt or add item at index -1 programmatically -
i have drop down list bound using http data service database (set through wizard, not declaration). drop down list changes values in datagrid , need "select one" null value users can select everything. here drop down list:
<s:dropdownlist id="ddlproducts" width="400" prompt="select product" close="datagridcontentchanging()" creationcomplete="ddlproducts_creationcompletehandler(event)" labelfield="title"> <s:dataprovider> <s:asynclistview list="{getproductsresult.lastresult}"/> </s:dataprovider> </s:dropdownlist> is there way keep prompt or programmatically add "select one" -1 index of drop down list?
any apprecitated. thanks!
setup value in ur database
(any number of ways do: if using table add table, if pulling data table put in union statement)
then handle the 'all' value (on click) put in '%' ur variable in dataprovider
Comments
Post a Comment