开发者

How to get selected items Drag & drop component?

开发者 https://www.devze.com 2022-12-12 21:34 出处:网络
How to get all the selected items from in this belowcode selectedContsList ? <mx:DataGrid id=\"dg\" dataProvider=\"{cNumbersList}\"allowMultipleSelection=\"true\" dropEnabled=\"true\" dragMoveEnabl
How to get all the selected items from in this below  code selectedContsList ?
<mx:DataGrid id="dg" dataProvider="{cNumbersList}"  allowMultipleSelection="true" dropEnabled="true" dragMoveEnabled="true" >
    <mx:columns>
    <mx:DataGridColumn dataField="contactName" headerText="Name"/>
 <mx:DataGridColumn dataField="contactNo" eaderText="ContactNo"/>               
    </mx:columns>

    <mx:Label text="Selected Contacts :"  width="122" color="#C90855" height="16"/>
<mx:DataGrid id="selectedContsList"  allowMultipleSelection="true"  dragMoveEnabled="true" dragEnabled="true" >
         <mx:columns>
         <mx:DataGridColumn dataField="contactName" headerText="Name"/>
         <mx:DataGridColumn dataField="contactNo" headerText="ContactNo"/>              
         </mx:columns&开发者_如何学Gogt;
</mx:DataGrid>


What's wrong with the following?

<mx:DataGrid id="selectedContsList" dataProvider="{dg.selectedItems}" allowMultipleSelection="true" dragMoveEnabled="true" dragEnabled="true" >

assuming that's what you are asking of course...

0

精彩评论

暂无评论...
验证码 换一张
取 消