• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How to add selection event, change event and click event for dropdownlist for mobile applications

New Here ,
Apr 08, 2014 Apr 08, 2014

Copy link to clipboard

Copied

Please someone help me in writng selection , click and change events for dropdownlist in flex for mobile applications . i have tried but i wasn't able to select the items in dropdown using my mouse or touch in my mobile . Please help me I am struck at this point and i am unable to get solution gfor this. Please................

Some code for which i neederd help:

<s:DropDownList id="ddlBranch" x="257" y="475" width="63%" height="80%"

                                creationComplete="ddlBranch_creationCompleteHandler(event)"

                                fontFamily="Calibri" fontSize="24"

                                labelField="BranchName"

                                prompt="{ddlBranch.selectedItem}"

                                requireSelection="true"

                                selectionColor="#7ab342">

                    <s:AsyncListView list="{getBranchResult.lastResult}"/>

                </s:DropDownList>

<s:DropDownList id="ddlZone" x="257" y="546" width="63%" height="80%"

                                creationComplete="ddlZone_creationCompleteHandler(event)"

                                fontFamily="Calibri" fontSize="24"

                                labelField="ZoneName"

                                prompt="{ddlZone.selectedItem}"

                                requireSelection="true"

                                selectionColor="#7ab342">

                    <s:AsyncListView list="{getZoneResult.lastResult}"/>

                </s:DropDownList>

I will get the list of Branches(first DDL) and Zones(Second DDL) from a webservice written in DOT(.)NET,  what i needded is touch events and selection events for both the dropdown lists and the data in the second DropDown List should bind based on the First Dropdown list item selected.

Service call for binding data to DDL:

protected function ddlBranch_creationCompleteHandler(event:FlexEvent):void

            {

               

                getBranchResult.token = loginService.getBranch();

            }

           

            protected function ddlZone_creationCompleteHandler(event:FlexEvent):void

            {

                getZoneResult.token = loginService.getZone();

            }

Please help...

Thank you.

Views

356

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines