Would you like to react to this message? Create an account in a few clicks or log in to continue.


Pakistan is contributing at its best in the field of latest technologies, platforms and approaches. Here,Flex developers share their experience, knowledge and ideas to assure their best talent in the world.

Latest topics
» Advice sought on recruiting a Senior Flex developer in Lahore
drag and drop (Advance Data Grid to List Box) EmptyTue May 11, 2010 2:41 pm by anjum

» steam boiler efficency calculator
drag and drop (Advance Data Grid to List Box) EmptyWed Dec 23, 2009 4:55 am by imranmalik

» URLLoader and URLRequest application
drag and drop (Advance Data Grid to List Box) EmptyTue Dec 15, 2009 6:01 pm by imranmalik

» Time display by ILOG ELIXIER PACKAGE
drag and drop (Advance Data Grid to List Box) EmptyThu Dec 10, 2009 9:28 am by imranmalik

» how Filter XML data by Flash Builder
drag and drop (Advance Data Grid to List Box) EmptySat Dec 05, 2009 6:33 pm by imranmalik

» drag and drop (Advance Data Grid to List Box)
drag and drop (Advance Data Grid to List Box) EmptyThu Nov 19, 2009 7:12 pm by imranmalik

» access the xml file through HTTPService request
drag and drop (Advance Data Grid to List Box) EmptySun Nov 15, 2009 11:46 am by imranmalik

» CURRENCY VALIDATOR
drag and drop (Advance Data Grid to List Box) EmptyTue Nov 03, 2009 2:06 pm by imranmalik

» Synchronous Behavior
drag and drop (Advance Data Grid to List Box) EmptySun Nov 01, 2009 8:04 pm by imranmalik

Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of on your social bookmarking website


You are not connected. Please login or register

drag and drop (Advance Data Grid to List Box)

Go down  Message [Page 1 of 1]

imranmalik



<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768"
creationComplete="init1()">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
[Bindable]
public var employeeData:ArrayCollection=new ArrayCollection();
public function init1():void
{
room1.send();
}
public function resultHandler(event:ResultEvent):void
{
employeeData=event.result.rooms.room;
}
public function faultHandler(event:FaultEvent):void
{
mx.controls.Alert.show("not found");
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:HTTPService id="room1" result="resultHandler(event)" fault="faultHandler(event)"
url="data/roomList.xml">
</s:HTTPService>
</fx:Declarations>
<mx:AdvancedDataGrid x="73" y="84" id="adg1" designViewDataType="flat"
dataProvider="{employeeData}" dragEnabled="true"
dragMoveEnabled="true"
allowMultipleSelection="true"
dropEnabled="true">
<mx:columns>
<mx:AdvancedDataGridColumn headerText="Room Name" dataField="name"/>
<mx:AdvancedDataGridColumn headerText="Room Size" dataField="roomsize"/>
</mx:columns>
</mx:AdvancedDataGrid>
<mx:List x="332" y="84" width="171" height="177" dropEnabled="true"
labelField="name" dragEnabled="true" dragMoveEnabled="true"></mx:List>
</s:Application>
////////////////XML FILE////////////////
<rooms>
<room>
<name>Colorado Room</name>
<roomsize>20x20</roomsize>
<roompic>"DSC02204.jpg"</roompic>
</room>
<room>
<name>Mile High Room</name>
<roomsize>25x30</roomsize>
<roompic>DSC02205</roompic>
</room>
<room>
<name>Bronco Room</name>
<roomsize>15x13</roomsize>
<roompic>DSC02206</roompic>
</room>
<room>
<name>Greeley Room</name>
<roomsize>20x20</roomsize>
<roompic>DSC02207</roompic>
</room>
<room>
<name>Boulder Room</name>
<roomsize>40x40</roomsize>
<roompic>DSC02208</roompic>
</room>
<room>
<name>Denver Room</name>
<roomsize>10x10</roomsize>
<roompic>DSC02209</roompic>
</room>
</rooms>

http://www.jumusic.tv

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum