How to add a DropDown List in Flex DataGrid
hi
I am trying to add a DropDownList in a DataGrid table. After the user selects one of the items from the drop down list, the Item that I have selected is not reflected or did not get selected. I know I can use ComboBoxGridItemEditor to achieve the result I am asking for. But combo box is editable, I do not want the user to edit but just select from one of the choices in the list. That's my reason for trying to add a dropDownList in dataGrid.
Pls can u tell me how the selected item in my dropdownlist can be recognize and update the value of the cell in the dataGrid and save the value back to the data provider??
Problem : so when I try to select blue, the cell do not get updated, instead it remains red.
thanks Rekha.
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var myDP:ArrayCollection = new ArrayCollection([
{label1:"Order #2314", quant:3, color:'red'},
{label1:"Order #2315", quant:3, color:'red'}
]);
]]>
</fx:Script>
<s:DataGrid id="myDG" x="85" y="57" width="393" height="151" dataProvider="{myDP}"
editable="true" variableRowHeight="true">
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="label1" headerText="Order #" editable="false"/>
<s:GridColumn dataField="quant" headerText="Qty" editable="true"/>
<s:GridColumn dataField="color" headerText="Color" editable="true">
<s:itemEditor>
<fx:Component>
<s:GridItemEditor>
<s:DropDownList id="myDropList" requireSelection="true">
<s:dataProvider>
<s:ArrayCollection>
<fx:String>red</fx:String>
<fx:String>blue</fx:String>
<fx:String>green</fx:String>
</s:ArrayCollection>
</s:dataProvider>
</s:DropDownList>
</s:GridItemEditor>
</fx:Component>
</s:itemEditor>
</s:GridColumn>
</s:ArrayList>
</s:columns >
</s:DataGrid>
View Answers
Ads
Related Tutorials/Questions & Answers:
How to add a DropDown List in Flex DataGrid
How to
add a
DropDown List in
Flex DataGrid hi
I am trying to
add... select from one of the choices in the
list. That's my reason for trying to
add a dropDownList in
dataGrid.
Pls can u tell me
how the selected item in my
How to add a DropDown List in Flex DataGrid
How to
add a
DropDown List in
Flex DataGrid hi
I am trying to
add... select from one of the choices in the
list. That's my reason for trying to
add a dropDownList in
dataGrid.
Pls can u tell me
how the selected item in my
Advertisements
DropDown list
DropDown list
how to get mysql database values into
dropdown usign java servlet and ajax?
Here is a jsp code that displays the database values into
dropdown list.
1)country.jsp:
<%@page import="java.sql.*"%>
How to get data datagrid ?
How to get data
datagrid ?
How to get data
datagrid in jsp from arrayList in java?
Code in java
CategoryDao dao = new CategoryDao();
ArrayList<Categories> lstCategory = new ArrayList<Categories>
dropdown list in jsf
dropdown list in jsf I want to
add a
list box to display the country name from the lists on all countries.When I select for e.g India then in the second
list box it will display the states related to India only and the flow
dropdown list in jsp
dropdown list in jsp hai,
i have static
dropdown list.. i want to get the selected value in string variable without jsp
regards
asha
struts dropdown list
struts
dropdown list In strtus
how to set the
dropdown list values from database ? I have a ArrayList object and set this object in
dropdown jsp... = MasterDataDAO.getValues(
list);
request.setAttribute("masterlist", masterList
Dropdown Checkbox list
Dropdown Checkbox
list
This tutorial explains
how to create jquery
Dropdown... jquery
Dropdown Checkbox
list. The application directory structure should look like...
dropdown , then displays
dropdown list as checkbox
You can
datagrid
datagrid please send
datagrid in jsp lot fields including date
dropdown list and text fields in php
dropdown list and text fields in php
How could I use php to populate text fields by selecting a name of a business from
dropdown list? Those text fields that will be populated by information in regards its company name, suite
Retrieval of Dropdown list
Retrieval of
Dropdown list Hi frnds... Am having problem... ... for eg, let A1,A2,A3,A4 be the values in
dropdown.. if i click A1, the corresponding value of A1,
list of name corresponding to A1 wil be displayed in another
getting values from dropdown list
getting values from
dropdown list I am having a
dropdown list which has hardcoded values ( we need it hardcoded only and will not be populated from... to the action.
My action is getting called however, i am not sure
how to pass
How to add
How to
add Hi,
I want to make a website which will recommend users books according to the genre selected by them. I am using PHP, JavaScript and mySQL.
The problem is that there will me almost more than 100 books
jsp- database dependent dropdown list
jsp- database dependent
dropdown list i want 2
dropdown list
1- CLASS
2-SECTION
both are should come from database.
and if i select a class suppose class a the corresponding section
dropdown list should retrieve the section
JSP Get Data Into Dropdown list From Database
JSP Get Data Into
Dropdown list From Database
In this section we will discuss about
how to fetch data dynamically into the
dropdown list in JSP... it
into the
dropdown list dynamically. In this example we will explain the
dynamically
How to Fetch Data using dropdown option
How to Fetch Data using
dropdown option sir maine jsp pr ek login page banaya jismain branch ka option hai.
main agar first
dropdown main first year branch select karta hoon to first year ki sari branches ki
list second drop
dropdown
dropdown
how to hide textbox field when i deselect from select
dropdown