Detect Column on mx:Datagrid drop event

I've been searching for a way to detect the column index when I drop on an mx:datagrid using Flex 4.  I can find the way to get the row index, but not the column.   Is the only way to define an itemeditor for each column, or is there something better (cleaner).
If it must be an itemeditor, is there an example of one that handles the dropevent out there somewhere?
I'm reluctant to try the AdvancedDatagrid after seeing all the posting about bugs and poor code quality.

if it's not necessary for the user to resize the column widths, i'd say use a single column with an itemRenderer, and handle what gets shown inside that.
if you must use multiple columns, then probably you're going to blaze the trail on performance testing.
but it sounds like you are asking if you should limit the data to only 10 <items>.
if so, probably convert the xml to ArrayCollection.  Large XML can freeze an app when the XML is updated.
then, if you need more optimization after that, you can disclude <items> when converting to arrayCollection

Similar Messages

  • C3PO - Scanning a Folder & Detecting user's "drag-and-drop" operations

    We are using Novell C3PO to export messages in XML format when the user
    press a button at the GroupWise Client message window, and this was done to
    provide an integration with a ERP software (from a very famous company here
    in Brazil), so the user reads his emails and can click this button and open
    the ERP ORDER SCREEN with all costumer's data filled in, that increases the
    productivity of the Sales Departament.
    REsuming, the main porpouse is to collect information of each email to open
    the Order Screen of the ERP system, without having to type everything again.
    The costumer wanted to go on and get several messages at the same time, that
    was stored on a GroupWise Folder, using a simple redirection rule and this
    was done using Visual Basic (called here "looking process"), that looks for
    messages into a specific folder in the GroupWise Client called "_Send". So,
    convert that messages to XML and then move to another folder called
    "_History".
    Now we can drag many messages at the same time to the folder _Send and then
    they will be converted. It is working very well. The problem is that the
    GroupWise Client computers are becoming slower because of the "looking
    process" (that VB application). We used VB because we could not find a
    process or a feature in C3PO that selects several messages at the same time
    and read them one-by-one.
    QUESTIONS :
    1- Can I have this "Looking Process" using C3PO tools ?
    2- Is there a way to detect a "Drag-and-Drop" event in the GroupWise Client
    with C3PO, so I would not need to scan those folders ?

    Jose Calil Nassur wrote:
    > We are using Novell C3PO to export messages in XML format when the user
    > press a button at the GroupWise Client message window, and this was done to
    > provide an integration with a ERP software (from a very famous company here
    > in Brazil), so the user reads his emails and can click this button and open
    > the ERP ORDER SCREEN with all costumer's data filled in, that increases the
    > productivity of the Sales Departament.
    > REsuming, the main porpouse is to collect information of each email to open
    > the Order Screen of the ERP system, without having to type everything again.
    >
    >
    I've been doing something similar, but rather than creating a new
    message, I've been using custom properties
    on each mail, so as they arrive I add two tags, one with a tagID, and
    the other with metadata. I then write
    searches for each folder returning only the message that are yet to be
    tagged. Nice and efficient, written
    in C#. I've run over my big mailbox (2GB) and the box hardly raises a sweat.
    Sincerely,
    Adam Bradley
    Identity Concepts
    Mobile : +61 419 637 518
    email : adam_j_bradley \at\ identityconcepts.com.au
    irc: #nidm on freenode.net
    Web : http://www.identityconcepts.com.au

  • Listening to Drag and Drop event from the extension panel

    How is it possible to detect a drop event from a Layer to a text field in a panel developer using the SDK?
    Drag and drop operation between panel elements are not the issues, but drag and drop from Photoshop and the panel might be an issue.
    Is it possible to implement them?
    If yes, could I be redirected to the documentation topic or can someone post some code snippet ?
    Thanks

    What model of camcorder is your video from and what resolution is it?
    What operating system are you using? Have you ensured that you have the latest version of Quicktime, per the program's requirements?
    Do not convert your video. The program will best with video directly from a camcorder, and converting it may will turn it into a format that it may be LESS likely to work well with.

  • How to get column values on item added event receiver

    Hi,
    I have two columns in a document library and one is people or group column and the other one is choice column with check boxes.
    I want to know how to read column values on Item Added event receiver, so that I can create if statements based on those values.
    Thank you,
    AA.

    Hi AOK2013, 
    Have you had a look at this Microsoft tutorial: http://msdn.microsoft.com/en-us/library/office/gg981880(v=office.14).aspx
    Essentially, you want to use the AfterProperties property to access the changed field value. 
    E.g. 
    var personvalue = properties.AfterProperties["YourPersonFieldName"]
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • How to use the drop event of the tree control in LabVIEW 8.20?

    Hi,
                I am using the two tree controls in my application to provide a option for the user to drag and drop item from one tree to the other.  I have to validate the user selection. I tried to capture the user drop event  using the event structure. The problem I am facing is, I am not able to drop the item even though i have wired a constant true to the filter(Accepted?) in the event case. I have enable the property(Allow droping) in the right menu of the tree control also.
              While configuring an event case for (drop, drag entered and some thing like this) only I am getting the problem otherwise it is working fine.  
    What do i need to do to caprture the drop event ?
    Is there any way to avoid the item duplication while droping a new item in the tree control ?
    or how can i do this?
    Thanks,
    Pandiarajan R

    Hi Pandiarajan,
    I hope you are doing well today! There is a lengthy discussion on the Tree Control Drag & Drop feature at this forums post including contributions from the developer of the Drag & Drop feature:
    Tree Control Drag & Drop in LabVIEW 8
    By avoiding item duplication, do you mean that you don't want the same item to be in the old tree control or do you not want more than one item in the new tree control?
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Forcing Face Detection for All Pictures in an Event

    Aperture 3.0 fails to detect all faces in all photos in an Event. Is there a way to force face detection for all photos in an Event? As it stands now, one cannot tag photos for faces if Aperture decides (erroneously) that photos don't contain a face.
    Spent ninety minutes with Apple Aperture Support, who confirmed this.

    I don't know how to answer your first question (force it for all photos), but I thought you could add faces / names to a photo using the Name button left hand side of the toolbar. I've used it today to add a "Face" to a photo containing two hands because I wanted to tag each hand with a Name. So I clicked Name, and drew a box on each hand and added a Name to it. So it works for a single photo but that might be a pain to do for a lot
    David

  • Formatting a column in a datagrid

    If I want to format some data in a column of a datagrid is
    there a preferred way of doing that? I have used both an
    itemRenderer and a labelFunction
    Is there a preference to one or the other?

    lableFunction can be used when the tweaking required is very
    trivial and you want to modify some text getting displayed.
    (custom) itemRenderers can be used when we want to display
    something complex within a cell like few controls, icons, labels,
    links etc.

  • Why does my ical keep dropping events.

    For a while now my ical has been changing the title of certain events to "new event".  Now it has started dropping events intermittently.  With my leaky memory I am not able to remember everything I put in.  Can anyone help?
    We run two imacs in our house and one ipad.  Our son, who is away at school also syncs via a MacPro and an ipad.  This is all done via Mobile me.
    Thank you in advance.
    Brad

    Brad,
    Try changing System Preferences...>MobileMe>Sync>"Syncronize with MobileMe" to something other than "Automatically." I would recommend trying "Every Hour."

  • ADF Drag and drop event inside the single af:treetable

    Hi Experts,
    I have a af:treeTable in my ADF web project and i would like to implement the drag and drop event to the same tree table for supporting my sample test project use case. Currently i am facing some issue to get the source tree node and the destination tree node of the drop and drop event inside my drop listener method. How can i get those object since i need to perform some business operation inside the listener. Please note that i am not using ADF BC4j in my project. The service layer is implemented as EJB and it's being called from the backing bean.
    Looking forward some guide lines to resolve this issue from you experts.
    Thank you.

    It's not a perfect solution, but a work in progress that i'm currently using in my backing bean:
    private RichTree navTree;
    private void exitContainers() {
    boolean success = false;
    while (!success) {
    try {
    navTree.exitContainer();
    } catch (Exception e) {
    success = true;
    private void clearDisclosedRowKeys() {
    if (navTree != null && navTree.getDisclosedRowKeys() != null) {
    RowKeySet rks = navTree.getDisclosedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    exitContainers();
    List<Integer> rowkey = (List<Integer>) rksIter.next();
    List<Integer> newRowkey = new ArrayList<Integer>();
    for (Integer row : rowkey) {
    if (navTree.isRowAvailable(row)) {
    navTree.setRowIndex(row);
    navTree.enterContainer();
    newRowkey.add(row);
    } else {
    // Row is no longer available
    break;
    if (newRowkey.size() == 0) {
    rks.remove(rowkey);
    } else {
    rowkey.clear();
    rowkey.addAll(newRowkey);
    Whenever you make a 'delete' or 'move' in the tree, call clearDisclosedRowKeys(), it will remove anything that's no longer valid, so your tree won't collapse, and you won't get the error anymore.
    I took out my logging and debug statements, but essentially this just gets all the rows, checks to see if they're valid, and if so creates a new RowKeySet with the valid rows in it.
    Of course make sure you have the setNavTree and getNavTree accessor's created and that they're bound in your JSFF, otherwise navTree will always be null.
    I haven't yet found a way to 'nicely' find out if you're at the top level container, so i'm relying on an Exception to occur to give me that information, if anyone knows a better solution please feel free to share it.

  • Locking middle or last column in a datagrid

    Does anyone know how to lock say the middle or last column in
    a datagrid. What i really need is for the first and fifth column to
    be locked in a datagrid or Advanced datagrid. Is this possible or
    do i need to put two datagrids next to each other and try to sync
    the vertical scroll??
    Thanks,
    -Jay

    >>For this, I have read that I can use Width="Auto" in all the columns and in the last column width="*", but in this case all the coloumns has a very low width so I can't read anything.
    Can't you just set an explicit width for the first two columns then?, e.g.:
    <DataGrid.Columns>
    <DataGridTextColumn Header="Column01" Binding="{Binding Property1, Mode=OneWay}" Width="100"/>
    <DataGridTextColumn Header="Column02" Binding="{Binding Property2, Mode=OneWay}" Width="100"/>
    <DataGridTextColumn Header="Column03" Binding="{Binding Property3, Mode=OneWay}" Width=""*"/>
    </DataGrid.Columns>
    There is also a MinWidth property that you can use to prevent the columns from being to narrow:
    <DataGrid.Columns>
    <DataGridTextColumn Header="Column01" Binding="{Binding Property1, Mode=OneWay}" Width="Auto" MinWidth="100"/>
    <DataGridTextColumn Header="Column02" Binding="{Binding Property2, Mode=OneWay}" Width="Auto" MinWidth="100"/>
    <DataGridTextColumn Header="Column03" Binding="{Binding Property3, Mode=OneWay}" Width=""*"/>
    </DataGrid.Columns>
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question.

  • WebService get list 750 records with 8 columns in mx:DataGrid atleast 2 minutes

    I am using WebService (ASP.NET) to get a list of customers (around 750) records with 8 columns using mx:DataGrid. It takes to list data in the mx grid atleast 2 minutes from offline development data server[SQL SERVER 2005]. It could be better if the list populate the datagrid with-in 1 minute. I didn't find how to resolve the problem. My WebService returns the ArrayCollection within 1 minute.
    Any hints would appreciate!
    T. Ghosh

    It doesn’t matter how many records, what matters is how many attributes and sub-objects.  One customer returned 100 records, each with a transaction history of some 10,000 transactions, although the transactions were not displayed in the datagrid (it would be later in the detail view).  Then the app was configured to convert the records to typed objects.  As one would expect, it took forever.  You might have to create a custom converter or just use the SOAP/XML.

  • Drag Drop Event

    Hello All,
    Can I trap the Drag and Drop event of a file from desktop through Scripting for Adobe Bridge.
    Thank you all in advance.
    Regards
    Farzana.

    I haven't seen such an event available to the scripts. I have an event handler and when I turned on my own logging to output all the events that I see, I didn't see any drag/drop events when I tried that operation. That doesn't mean there isn't someother way to do this, but it wasn't obvious to me through normal event handling.
    --John

  • Link column in a datagrid

    Hi Dear;
    how can i create an A/R invoice link buttuon as column in as datagrid?
    regards;

    Hi
    it has been already discussed
    anyway Use this code
    dim oLink as SAPbouiCOM.EditTextColumn
    oLink=oGrid.Columns.Item(0)
    oLink.LinkedObjectType = "13" 'please check object type for Ar invoice
    Hope it helps you
    Regards
    Vishnu

  • How to detect AIR for Android closing app event? AIR analog to Activity.onDestroy()

    How to detect AIR for Android closing app event (remove app from dock "Recent Apps")?
    In AndroidActivityWrapper.StateChangeCallback exist method onActivityStateChanged. But he have only DESTROYED state, which it seems received where app finish exiting. Activity.onDestroy() called if app start exiting.

    DPI aside, you can just set your resolution on the project to the target devices resolution to preview how it will look. While vectors will render much smoother on the device (higher DPI), it's a very easy way to target various resolutions for testing.
    If you have the full CC suite you might want to consider using Flash Builder 4.7 which has many different device presets and allows you to create your own presets to mimic tablets and phones. It really depends how complex your project is to move over to FB.

  • Bargraph,icon and a numeric value, together in a single column of advance datagrid

    Hiii,
    I am trying to embed an icon, a bargraph with two values and a numeric value in a single column of advance datagrid. can anybody help me out in giving a solution for this...I have read a  blog where the code explains about the bargraph in advance datagrid, I want to embed numeric value and icon too including bargraph in the column. I am looking for a Bargraph which  takes two values
    In the above image, the graph and rate is shown in a separate column , I require graph to be shown along with the numeric value and a icon in a single column.
    The blog which i refered and got the above output is placed below, it can be used for the reference.
    http://symmetri.blogsome.com/2009/05/22/render-a-bar-graph-within-a-datagrid/

    RVR,
    This is a great exercise to get familiar with LabVIEW's array functions.  A great place to start is actually the LabVIEW help on arrays, located here:
    http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/grouping_data_with/
    Depending on your data format, you can probably use the Read From Spreadsheet File VI to bring your data into a 2-d array.  You could then use the index array VI to pull your column out.  You could do this in a For loop and use Autoindexing to build your 1,000 column resulting array.  I would leave everything as a String format until I'm done. 
    This doesn't sound like a very difficult task.  Good luck!
    --Paul Mandeltort
    Automotive and Industrial Communications Product Marketing

Maybe you are looking for

  • How do I merge 2 iphoto libraries?

    I would like to merge my two libraries into one. One library is 93Gb and the other is 23Gb. I would like to keep masters and previews of both libraries and the albums and folders I have created.

  • Error message while doing PGI

    HI Guys I created Order and while doing PGI error message comes Error message is: Account 892000 requires an assignment to a CO object Message no. KI235 Diagnosis You have not defined a CO account assignment for an account that is relevant to cost ac

  • File will not open nor move to trash, and unexpectedly closes finder

    I downloaded a file and saved it in my movies folder on my mac book pro. When i click on the movies folder in finer it will automatically close finder down. If i search for the folder that i downloaded it appears but will not move to trash nor open,

  • WRT610n Issues - Help Please

    Hi, I have had my WRT610n for a few weeks, and i have a few questions.nI have an option in my Network Settings Called:  EGHN Qos Policy Holder?  What is this for? If i right click and select "View Webpage" I get the following website linked open. htt

  • Digital envelop and signature

    Does SAP NetWeaver 2004s supports digital envelop along with signature? Do we have to use some third party SAP recommended tool for encrypting documents while sending via email? And can we show bitmap signature image as digital signature, do we requi