0 Replies Latest reply: Apr 8, 2014 6:23 AM by vj_mvk_dev RSS

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

    vj_mvk_dev

      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.