Flex :: DataGrid / List Drag And Drop - How To Avoid Copying

Jul 21, 2011

I'm using drag and drop on a DataGrid to reorder items. However, when the user holds down Ctrl he can initiate a drag Copy operation. How can I disable copying altogether? (not just cancel the drop, but also prevent Ctrl + drag from showing the (+) icon)

View 2 Replies


Similar Posts:


Flex :: Default To Copying / When Drag And Drop Your Items?

Jun 10, 2009

Why is it that, when I enable dragging-and-dropping in a TitleGrid, items are copied when they are dragged instead of moved?[code]When either of those items is clicked-and-dragged, it will get copied instead of moved.This is especially confusing because TileList is a decedent of ListBase, which DataGrid also descends from..But DataGrid does the right thing when dragging and dropping items.

View 1 Replies

Flex :: Drag&Drop In Advanced DataGrid?

Jan 18, 2010

I have a Advanced DataGrid for displaying the number of rows from the Database and one row strictly should not allowed drag option. Is is possible

View 1 Replies

Flex :: Drag And Drop From Datagrid To Uicomponent?

Aug 10, 2010

I'm trying to drag an item from a datagrid and drop it onto a UIComponet. Basically I just want the UIComponent to know that something has been dropped onto it and allow it to access the data of the dropped item.

I thought just listening for the drop event would do it but it seems not.

I found lots of documentation on dragging from one IList to another but nothing for this.

<mx:UIComponent xmlns:mx="http://www.adobe.com/2006/mxml"
initialize="init(event)" dragDrop="itemDropped(event)">

View 1 Replies

Flex :: Datagrid Drag And Drop Styling?

Mar 1, 2011

When I enter with a dragged item into datagrid, a bold line appears over the active row of the datagrid (which is fine to show the active row), but the problem is that even after I drop the item into datagrid, that line remains there. It goes only if I enter with a new item (in which case a new line comes to the respective row again).

I am using custom handler for dragdrop event for this datagrid.

View 1 Replies

Flex :: Enable Drag And Drop In List?

Oct 10, 2010

I have a Spark List with a TileLayout. I want to enable moving itemRenderers around to be able to order items.

View 1 Replies

Flex :: Drag-and-drop Onto List Item?

Oct 21, 2010

I have a List with an item renderer and would like to enable drag-and-drop onto the items in the list, rather than adding the data to the list. Is it possible to find the item that is being hovered over when dragging?

View 1 Replies

ActionScript 3.0 :: Flex List Drag And Drop?

Jan 16, 2010

I have set up some lists (<mx:List>) in Flex... I have drag and drop working fine, in that I can move elements easily from list to list. For some reason though, my DragInitiator and the currentTarget of my event are the same... even though I am obviously moving from list to list... Does anyone have an example of a function that I can call on my "dragComplete" event that will tell me the current target which will give me the id of the List object I am dropping on?This is my current function which is always returning true...

Code:
private function _dropped(e:DragEvent):void
{

[code].....

View 2 Replies

Actionscript 3 :: Add Drag & Drop To A Datagrid Column In Flex?

Nov 3, 2009

I have two datagrid components and I would like to drag one column from one component to the other. I have been trying several methods but I couldnt acomplish that.

View 1 Replies

Flex :: Restrict Datagrid Column Drag Drop?

Apr 9, 2010

How we restrict datagrid column drag drop...

View 1 Replies

Flex :: Datagrid - Drag-n-Drop With Custom DragProxy

Oct 15, 2010

I'm doing the drag an drop of an ItemRenderer manually (DataGrid) and want to know how to generate a custom DragProxy of a component that hasn't been added to the display list.

I tried something like this but didn't work:

private function doDrag(event:MouseEvent):void
{
var dragSource:DragSource = new DragSource();

[Code].....

So, I want to be able to create the DragProxy using a component, the button is just an example.

View 1 Replies

Flex :: Drag And Drop Rows Using Only The First Column Of The DataGrid?

May 2, 2011

I need to allow drag and drop in my DataGrid, but I have a lot of item renderer and item editor that makes conflicts with events when dragging.

So, I want to restrict the activation of drag and drop in the first column ?

View 1 Replies

Flex :: Prevent Datagrid From Editing After A Drag & Drop

Feb 23, 2012

I have an AdvancedDataGrid with editable parameter to "true". My problem is that after a successfull drag & drop, the item is being edited and I don't want this to happen. I tried to create a custom advancedDataGrid with this:

[Code]...

View 1 Replies

Flex :: Drag And Drop Between List Control And Chart?

Feb 18, 2010

I am trying to implement a drag and drop function between a list control and a columnchart in Flex3. List items should, when dragged and dropped on the chart, be displayed raphically in the columnchart.Alas, dropping the listitems on the chart does not seem to result in a proper graph.Here my code till so far with regard to the drop part:

private function doDragDrop(event:DragEvent):void{
var ds:DragSource = event.dragSource;
var dropTarget:ChartBase=ChartBase(event.currentTarget);

[code]....

View 1 Replies

Flex :: Drag And Drop (list Items To Canvas)

Jun 27, 2011

I just started using Flash Builder 4 (yesterday infact).

I have two lists and a canvas. When dropping a list item onto the canvas, i want to trace what item it is (the label and data) and which list it came from. From there, i want to add an image to the canvas according to the dropped item.

Here's my current code

private function componentDragEnterHandler(event:DragEvent):void {
DragManager.acceptDragDrop(Canvas(event.currentTarget));
DragManager.showFeedback( DragManager.COPY );
}

[Code].....

View 1 Replies

ActionScript 3.0 :: Flex Drag And Drop - Get What Value Have In The List When Click On Submit

Apr 14, 2009

[Code]...

1. If i select one and drop it to the next list, then i select two and drop. the value one must be replaced by two.

2. When i click on submit i need to get what value i have in the list.

3. I need to check whether its right or wrong.

View 1 Replies

Flex :: Set The "format" Used For Drag'n'drop On A List Control?

Dec 21, 2009

I'm dragging from a TileList to a custom component. I want to know what is being dragged before I accept it. How do I set the "format" that is used for "event.dragSource.formats" in the DragEvent?

Edit for clarification: When you set "dragEnabled=true" on the TileList, it takes care of the drag source stuff, but it uses "items" as the format for the DragEvent. I'm looking for a way to have the TileList use the correct format.

View 2 Replies

ActionScript 2.0 :: How To Make DataGrid Drag And Drop

Jun 21, 2008

How can I make the data grid drag and drop?

View 2 Replies

ActionScript 2.0 :: Drag And Drop From List?

Jun 2, 2007

I'm looking for a way to drag names from a scrollable list and drop them into another area.From what I've read, it doesn't seem like I can use the List component if I want to achieve this, but I'm having trouble thinking of a way.Basically, I'm going to have a input text box that will be used to be populate the list. Then I would like the ability to drag the names from the list to a blank area.I was able to get it working with the input text box to populate the list, it was just the dragging part that caused me trouble.

View 12 Replies

Flex :: Copying Data From A Column In A Datagrid To An Array?

Jan 28, 2011

I have an editable column in a datagrid. How do i copy the contents of that column into an array? The dataprovider for the datagrid is an array

View 3 Replies

ActionScript 3.0 :: Drag & Drop, Call A Method If List Changes?

Aug 8, 2011

I have two spark lists,backed up by Array Collections, both of which accept drag & drop either to move objects between them or to reorder within the lists. I have a method which is called on drop which resets some properties of the object to 0, this works as expected...
 
protected function list_dragDropHandler(event:DragEvent):void
{
if(event.action != DragManager.NONE)
{

[Code]..... 
 
What I would like to do is only call this method only when the objects are moved to another list, currently it is called when I reorder within the same list too

View 2 Replies

ActionScript 3.0 :: Drag And Drop An Object From A List Of Objects?

Aug 21, 2011

I'm creating an application where the user can select an object from a list of objects, and then put it on the main window.

I want to have the list of objects presented like in the web app : [URL]

The user can select a category, then the list of objects of that category is displayed, then he can drag and drop an object to the main window.

How is it possible to do this, having a list of objects?

View 0 Replies

ActionScript 3.0 :: Drag And Drop Item Order Not Matching DataGrid Source

May 25, 2010

I have a DataGrid that contains data linked to a server. When I select mutliple items from the grid (using shift-select) and drag some items out from the DataGrid to another component, the array of items being dragged over appears to be in a completely arbitrary sort-order, and are not in the sort -order f the DataGrid as I'd expect.

Therefore, wwhen i drop them on the target (which is unsorted), their order doesnt match that of the DataGrid... what am I doing wrong and how can i fix this?

I'm getting the array using:

var dragItems:Array = event.dragSource.dataForFormat("items") as Array;

Is this the wrong data source on dragSource to look at?

I should mention that the drop target is a nonlist control, and that i am using a custom drop handler...

View 1 Replies

ActionScript 3 :: List Drag And Drop And TextInput Focus Priority

Oct 31, 2011

I'm using a Spark List with a TextInput in the ItemRenderer, with ability for the user to reorder the list rows by drag'n'dropping them. This is how I declared the list :

<s:List id="list" left="245" top="119" width="667" height="433"
dragDrop="insertItem(event)" dragEnabled="true"
dragEnter="acceptDrop(event)"
dragComplete="finalizeDragAndMove(event)"
dragMoveEnabled="true" dropEnabled="true" focusAlpha="0"
skinClass="components.DataList_Campaign"
hasFocusableChildren="true" />

Everything works fine, except that it's impossible to select the text in the TextInput with the mouse, instead it's dragging the row...How can I set the TextInput to have priority over drag'n'drop ?

View 1 Replies

Actionscript 3 :: Avoid ItemRenders Caching In A Spark List In Flex 4?

Sep 11, 2010

I have 2 Spark List with custom Item Renderers. I'm working on an application that enables users to grag these Item Renders from one List to the other. When one of these IR is dropped in a new position or in another List, I'm updating the dataproviders: remove the object from one list's dataprovider and adding it to other's dataprovider. This si working ok. The problem is that some times the IR is cached and it doesn't show the correct information, based on its data.

How can I force the lists to never cache IRs and all the times I modify the dataprovider, all item renders re-create all IRs (performance won't be an ossue since I have few items on each list)

View 2 Replies

Flex :: Using Drag & Dop Into List Get List Items?

Nov 23, 2009

while i using drag & drop from listbox1 to listbox2 ,how can i get all the items of listbox2 in flex

View 1 Replies

Flex Drag And Drop

May 19, 2009

I am trying to do a flex drag and drop. It is very similar to this first example.url....The problem is that event.currentTarget.mouseX,mouseY is showing the position where I put the mouse down rather than the position where I had finished dragging.

View 1 Replies

Flex :: Drag And Drop Between Datagrids?

May 5, 2010

we want to drag a button with a css layout from one grid to the other. On the second grid should be the same button with this layout. The grids are in different mxml files.

View 2 Replies

Flex :: Drag And Drop In Canvas?

Feb 1, 2011

I'm doing an application in flex where I draw different sprites inside a canvas. Depending of the dimensions, scrollbars can be appear. I would like to move the "image" with the movement of the mouse as you can see at the Adobe Reader when you are reading a document with zoom (hand mouse icon). In this way, you dont have to touch the scrollbar.I'm start trying with drag and drop properties of the canvas, setting the position of the scrollbar according with the movement of the mouse but that is not as I expect.

View 2 Replies

Flex :: Drag And Drop Icon?

Mar 7, 2011

I am dragging item from a datagrid and while dragging I could see all of the columns in the selected record, being getting dragged. However I only want to show one column (maybe name or id of the record)? Is there a way to achieve this? Also, could I show an icon or image instead of the record while dragging.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved