Newbie question, how to resize a DataGrid to always adjust to the content?

Hello

I don't know this is a question asked time and again one time so please forgive me if I go over old ground.

I just discovered flex 4.5 on a week ago and I am absolutely amazed by the power it gives me and how it was easy to pick up... There is a problem, that I fight with however.

How to resize to mx or datagrid to adjust the content of the sparks?

I just used more traditional solutions (.net aspx) and I have the habit of (and quite like) the way that a datagrid or list control will resize itself automatically itself to adapt to ranks how it should display.

I've accepted the fact that I need to place scrollbars on the external container so that the user can scroll down to see the content (I would like to apply dynamic resizing finally), however no matter what I do the items in the DataGrid in my flex application never seem to adjust the content.

I looked around the internet and there seems to be a lot of people who say that it is possible, and a lot of the sample code provided for that matter, but many it seems relevant to flex 2/3 and doesn't seem to work in my situation.

Any advice would be greatly appreciated.

I found this in my search for another question. http://xposuredesign.NET/?p=68

Tags: Flex

Similar Questions

  • Newbie question - how to effectively check if photo is part of the selection

    Hi all

    Sorry for the newbie question, but I do not know how to solve, and I'm sure that there is a quick and easy answer to this:

    My goal is to get all the 'stack heads' (photos with Position 1 in batteries) selection ('photos' below).

    for I have, make photo in ipairs( photos )
    local date = picture:getFormattedMetadata("Filename")

    if Photo:getRawMetadata( "isInStackInFolder" ), then
    - Photo is in a stack
    local photoHeadOfStack = picture:getRawMetadata("topOfStackInFolderContainingPhoto")

    local stackPos = picture:getRawMetadata( "stackPositionInFolder" ), - get the position in the stack
    local photoHeadName = photoHeadOfStack:getFormattedMetadata("Filename")

    app:logVerbose(' Photo nb ^ 1, name ^ 2 is in a stack with the position ^ 3 ', i, date, stackPos"")

    if stackPos == 1 then
    - photo is the master of the battery
    stackTop[#stackTop+1] =photo
    app:logVerbose(' picture ^ 1 is the top of the stack ^ 2 ', date, #stackTop)

    -check if couple if it is correct
    elseif photos. photoHeadOfStack then
    app:logVerbose(' picture ^ 1 is in a stack, but not over the top. ") (Top of the stack already selected", date)

    other
    stackTop[#stackTop+1] =photoHeadOfStack
    app:logVerbose(' picture ^ 1 is in a stack, but not over the top. ") Top of the stack ^ 2 - ^ 3 ", date, #stackTop, photoHeadName)

    end
    end
    end


    In the if structure in the center of the Position in the stack control, if the Position is not 1, I would check if the photo to the stack ("photoHeadOfStack'") is part of the 'pictures '. I tried 'elseif photos.photoHeadOfStack then' and ' elseif photos [photoHeadOfStack] then ' but it doesn't work-> This elseif is never true even if 'photoHeadOfStack' part of the 'photos'.

    Any way to have this check done without checking the photos "manually"? (via e.g. a loop for)

    I'm sure that Lua offers this, but I do not know how...


    Thank you for your support!

        --[[ This code creates "stackTops", an array of LrPhotos that are the
        tops of all the stacks containing photos in the array
        "photos". ]]
    stackTopSet = {}
    for _, photo in ipairs (photos) do
        local stackTop = photo:getRawMetadata ("topOfStackInFolderContainingPhoto")
        if stackTop ~= nil then stackTopSet [stackTop] = true end
        end
    stackTops = {}
    for photo, _ in pairs (stackTopSet) do table.insert (stackTops, photo) end
    
  • Newbie question: How do I hide a page after click on the button?

    Hello!

    My name is Rafael. I'm talking about the Brazil.

    I am new user on the AdobeCycle software

    I do a form and I need help, please.

    My project form has three pages:

    1st Page - Instrucion

    Page 2 - form with fields to fill in

    3ª Page - (this page will be hidden). This page will be information the information filled out by the user to the 2nd Page . Will be just text.

    What do I want?

    When the user click on the button send email, I want the page with the form is hidden and show the 3rd Page with information (no field, only the full text). I want to send the PDF file to the e-mail with the 1st Page and 3rd Page (just the text with the information).

    How can I do this? How do the 3rd Page (the information filled with page two)?

    No problem of Rafael,

    Adobe have a guide that is very useful to access many of the features of the fields here: http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf

    I think about her a lot.

    Then at page 164, it looks like access/change the color of the legend AND the value:

    TextField1.caption.font.fill.color.value = "R, G, B" / / change the color of the legend

    TextField1.font.fill.color.value = "R, G, B" / / change the color of the value

    If you want to change the color of the border, then this requires another script. The example on the blog we mentioned, examples on page 2 to change the color of the borders of the second row down): http://assurehsc.ie/blog/index.php/2010/06/laying-out-a-form/

    For example:

    VNAME var = this.name.toString ();

    xfa.resolveNode (VNAME + ".") ui.textEdit.border.edge") .stroke ="solid";

    for (var i = 0; i)<4; i++)="">

    this.ui.oneOfChild.border.getElement("edge",i).color.value = "255,153,0"; orange tint

    xfa.resolveNode(vName_+_".ui.textEdit.border").getElement ("edge", I) .thickness = "0,0200" in

    }

    In addition, here are some links that might interest you: Re: books or guides for Livecycle Designer

    Good luck

    Niall

  • [Newbie question] How is-13:00 or by e-mail a link of Dell on the Community Council?

    [Newbie question] How is-13:00 or by e-mail a link of Dell on the Community Council?

    Once I click on a name of Dell link to access their profile. Currently, I don't see a where clause to send a private email Message. What Miss me? Thank you.

    A screenshot of the view that I see when I click on the link Dell profile is attached.

    My apologies, unlike most of us, DELL-Lorna M does not accept private messages. You will have to send him directly.

  • Newbie question: how to extend in unallocated disk in a VM XP?

    Hi all:

    This is a newbie question, but looking for answers only left confused me...

    I have VM Fusion (v2.0.6) running on a MAC (OS X - Snow Leopard) with an XP VM. When the XP VM has been implemented, it has been implemented with 20 GB hard drive space. I used VM Ware Virtual Machine settings to increase the disk space of 50 GB. (I left the "pre-allocate disk space' and 'divide into 2 GB files' options unchecked.) I don't have any snapshots during execution/implementation.

    However, my current XP VM flashing me alerts "low disk space" - I see only about 1 GB of free 20 GB (I don't see the 40 GB listed in 'My Computer'). When I use the Services of management of disk in XP, I see a disk 0 20 GB System Partition with 30 GB of unallocated space.

    How can I extend the current Parition (System) in the space of 30 additional GB? And do I have I done this to begin with?

    Thanks in advance!

    Take a look at: resizing of the ramdisks with step by step Instructions

  • [Newbie question] How to find unused media?

    Hello everyone, quick newbie question. How can I quickly find all media in my imported files that are currently not used in my project? I want to delete them from the project.

    Thank you!

    First, go to the Edit menu > remove unused.

    Use with caution!

    MtD

  • Newbie Question (how to select all the text in the textinput on click?)

    Hello world

    I have a field textinput with a for a video embed code and I'm trying to make it easy for users to copy the code.

    How to set the textinput to auto-select the content field when the user clicks on this area?

    < mx:TextInput id = "url" text = "{emailURL}" / >

    Thank you

    DK

    That should do it.

    If this post has answered your question or helped, please mark it as such.


    http://www.Adobe.com/2006/mxml">
     
        [Bindable] private var emailURL:String = "[email protected]";
         
    private function focusInFunc (): void {}
    myID.setSelection (0, myID.text.length);
    }
    ]]>
     

     

  • Newbie question: how to set up a dynamic security with Essbase?

    Hi all

    of course, I'm new to technology Essbase and I have a simple question:

    -How can I configure a dynamic in Essbase OLAP server security so that the user can only see some members of the dimension (and according to the rows in the fact table)?

    By dynamic, I mean that I don't have to click on in via UI (for example http://businessintelligencedw.blogspot.com/2009/01/security-filter-essbase-tutorial.html), but to base the permissions on a database table where I can easily my users (by program) adjust the visible members for my users.
    Also, can I add users/roles programmatically?
    Surely, for mulitple user environments didn't click on them while...


    Can someone point me to relevenat documentation, I checked on this book (http://www.amazon.com/Oracle-Essbase-OLAP-Multidimensional-Solution/dp/0071621822), but there is not a single sentence on the security in this :(

    Thank you

    Igor
    It's a new bad:(et une bonne raison de laisser tomber le produit.)

    Wow, I would not say it is a breaker business, but to each his own.

    Well, there are other 'issues' with Essbase. As I imagine that there are with MSAS.

    I think of them as the oddities. But of course the quirks are the faults that love makes forgive you. I guess that means that I love you Esbsase. It's sad.

    I agree that an Excel/VBA solution is not... ideal. But in the context of the client, this is what they wanted.

    I pull a SQL - tables generated if I had to do it now, then run it through MaxL. I documented using MaxL/VBScript (go easy on me, Hey, it's a MS product) to generate the filters that look pretty. I will avoid linking to my blog twice in the same thread, but I have a post with the code example that shows how to do this. Research of planning + filters in the blog. It might give you some ideas.

    Kind regards

    Cameron Lackpour

  • How to resize layer with a large image of the layer mask?

    Hi all

    How to resize the image on the layer mask?

    * document - doc.width, doc.height

    * mask - activeLayer.bounds

    * and how to take the coordinates in the image with the mask, if the image is larger than the size of the document?

    01.jpg

    2014, use it at your own risk.

    #target "photoshop - 70.032»

    If (app.documents.length > 0) {}

    Var ref = new ActionReference();

    ref.putEnumerated (charIDToTypeID ("Lyr"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

    var layerDesc = executeActionGet (ref);

    var layerMaskEnabled = layerDesc.getBoolean (stringIDToTypeID ("userMaskEnabled"));

    If (layerMaskEnabled == true) {}

    // =======================================================

    var idsetd = charIDToTypeID ("setd");

    var desc4 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref1 = new ActionReference();

    var idLyr = charIDToTypeID ("Lyr");

    var idOrdn = charIDToTypeID ('Ordn');

    var idTrgt = charIDToTypeID ("Trgt");

    Ref1.putEnumerated (idLyr, idOrdn, idTrgt);

    Desc4.putReference (idnull, ref1);

    idT var = charIDToTypeID ("T");

    var desc5 = new ActionDescriptor();

    var idUsrM = charIDToTypeID ("rocket");

    Desc5.putBoolean (idUsrM, false);

    var idLyr = charIDToTypeID ("Lyr");

    Desc4.putObject (idLyr, idT, desc5);

    executeAction (idsetd, desc4, DialogModes.NO);

    };

    Alert (app.activeDocument.activeLayer.bounds)

    };

  • How can I sort my files by name, but the content by date?

    I am on Windows 7 and trying to sort my files in the order of name and the contents of each folder in date order, but if I change IT automatically changes them both?  How to do this?

    You can not in Vista - that option is not available.  The following items can help you with the setting folder models and change the sort order to some degree Vista allows:

    Here's how to change the default template for a folder: http://www.vistax64.com/tutorials/70819-windows-explorer-folder-view-settings.html.  Default behavior is to select the model based on the first type of file placed in the folder (you must choose something).  Vista sets the folder type template according to what are the types of files in the window and the settings display window Explorer. This will show you how to reset the Windows Explorer folder view settings, disable Automatic folder Type discovery and increase the view of the folder cache to have Vista don't forget display settings, model of file type, size, or position of a specific window for when it was still closed to the location of specific path.

    It does not work with the Sub record under, Open with, open in a new tab (Internet Explorer), etc... dialog windows of type through the good File menu bar item. These don't seem to be able to have their size or their position to recall. For the latter, you can use the free program http://autosizer.en.softonic.com/ to resize them.

    Here is another article on how to modify the columns in Windows Explorer and sort in Vista: http://www.vistax64.com/tutorials/108665-column-customize.html.  This will show you how Add, Remove, move, change the widthand change the sort order of the columns in Windows Explorer in the way that you want.

    Here is another article on how to change the display of the default folders in Vista (but she argues, it is not a perfect solution and can revert to the previous behavior is not as good as the two prior links provided: http://news.cnet.com/8301-13880_3-10019957-68.html.)

    I hope this helps in your situation.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Suspicious emails are ongoing; How can I close my hotmail account and save the content

    I got more and more sophisticated emails which concern me. I think it's time to close my current hotmail account and open a new one. Question is how to save the contents of the existing account before closing and transfer it to the new account.

    Need your advice and recommendations and how.

    Thank you

    Daniel R.

    1. Connect on http://account.live.com
    2. On top you have headings like home, basic information, payment & billing and security & privacy
    3. Click on Security & Privacy
    4. Under account security, click on manage advanced security
    5. You could get to type the verification code, please choose the appropriate media the way you want to receive the security code
    6. Type the security code to the next page
    7. On the next page click on set he later places
    8. Then, you will get the page that says to help protect your account
    9. When you scroll down the page completely, you will find the possibility to close the account
  • Newbie question - how to concatenate in EQL?

    Sorry for this question but the answer is beyond me in documentation and examples. How do concatenate you two attributes in EQL?

    I looked at https://wikis.oracle.com/display/endecainformationdiscovery/Endeca+Query+Language+%28EQL%29, but there's not much info here. Is there somewhere online documentation EQL?

    Thank you

    Currently, string concatenation is not supported in EQL. You must perform this concatenation in the ETL by creating a new attribute for the concatenated value. (for example YEAR_MONTH_FIELD = YYYY-MM)

  • Newbie question - how to export DVD? (urgent)

    Hiya,

    I am a complete newbie to the Premier Pro and cannot for the life of me find a way either:

    Export directly from Premiere Pro on DVD

    OR

    Export to MP4 and then burn them on DVD

    So far, I've tried exporting in MP4, then burn the file on a DVD. I think the MP4 Player plays, but once burned on DVD it will not play in my DVD player. Why would it be? I tried exporting as NTSC and Pal. I am in England so thought the Pal copy should work!

    Did not understand how to burn directly to DVD from Premiere Pro - anyone know?

    In a word - which is the good method to use to burn to DVD?

    I need to know fast because the DVD must be in the post this week!

    Thank you

    Wow - I can't thank everyone enough for all your answers - I really appreciate it. I would feel lost without the support of the people on this forum.

    I am very happy to say that I now have a working DVD... Yay! I've been up to 1 last night after working all day try things to solve problems. My father-in-law has now a beautiful 70th birthday message DVD of his daughter (she lives in the United Kingdom with me and we can get in Australia to see).

    Now I "ve got a 'safe' DVD in the bag, if I have the time I think I'll try adding markers chapter and create a menu etc. He has got to go to the post office in the next 2 days.

    It's a little weird, even though, as I'm not entirely sure what was the problem in the end. The things I did differently to my knowledge are:

    • Replaced by which concerned a meg each of the 3 or 4 images with sizes file very high (between 30 MB and 50 MB each).
    • Then exported PD DVD again.
    • DVD burnt by still (do not use my installation of clean combustion of Macs).

    It's very weird, but, as when I exported the project of the PP, it went seemed to add a whole new stage of "transformation". It started with a stage/message that says "Encoding, pass 1 of 1" which did not appear before. Also, it took more time to export.

    Able123 - you're right, I need something to calm my nerves at the end! I would like to have a dog, but unfortunately not. I had a beer at the end of the day if :-)

    I am very satisfied with the result for my first project never :-) I really appreciate the side edition of things, but when it comes to file formats and export appears like a minefield!

    Finally, I'm curious to know the number of brand with DVDs. Is a DVD not DVD as long you take into consideration if your DVD player can play DVD + /-DVD / DVD + RW, etc.? I would never use own brand DVD but I thought that as long as it was a decent brand, it should be ok?

    What is the recommended DVD format? IE - DVD / DVD +, etc.? In the end, I used Sony DVD + RW, but in this particular case, this does not seem to make a difference for my success.

  • Newbie question - how to animate the liquid?

    Greetings!

    Let me start with apologies for my English, I have not practiced much lately and this is the result.

    I'm trying to copy a film animation to improve my skills in flash, but I'm stuck at some point.

    Here is the link to the clip:

    http://en-GB.Facebook.com/photo.php?v=489569444438953

    I am interested in the liquid. I am able to resize through interpolation, but I can't get this effect of the drink is poured into the glass.

    How world you do this?

    Thank you very much

    Enrico

    Mac - flash cs5

    You can use a mask (of glass).  interpolation of mask so he reveals more in addition to liquid in the glass the liquid is poured.

  • Newbie question: how to use forms and collect signatures?

    Hello

    I could use some help on how to perform a task, I have been set.

    What we need to do:

    • Provide forms online for new recruits to view and electronically sign
    • Must be able to let people easily sign electronically forms without having to do a lot of work
    • Forms must contain a checksum to indicate that they have not been tampered after signing
    • Forms must be printable by newly hired staff to allow them to keep their information

    Can someone tell me what to do and buy so that we can do this?

    Sorry for the beginners question, but I tried to search for this and did not have a lot of luck to get a clear answer on how to do what we are looking for.

    Thank you!

    PEI

    The number of forms you'll be colecting will be a problem then. When you enable a document signed and recorded with Acrobat Pro and you distribute the form to more than 500 recipients, you are limited by the license agreement Acrobat from not more than 500 cases of the form data that was provided to you, including paper copies.

    You can avoid this limitation by allowing the reader to the document using Adobe LiveCycle Reader Extensions Server product, but this can be expensive. There used to be an Adobe authorized third party (FormRouter.com) which could compatible reader of individual documents so that you wouldn't have to license Reader Extensions yourself. I heard that they are is no longer allowed, but you might want to contact them to make sure.

    It is not difficult to set up a new digital ID. You can try it yourself to see what it is.

    Adobe also has the new EchoSign service available, then you might wish to consider to see if it can meet your needs: http://www.echosign.com/

Maybe you are looking for

  • How to use Toshiba T icon as a shortcut to an application from Toshiba

    You will notice the pretty T icon in your address bar to this forum. To use this distinctive icon for any shortcut to a Toshiba application or your user guide follow these steps: 1 / create a directory, a place to store the icon you are about to extr

  • I'm having a lot of problems. Several Trojan horses, the program does not, etc.

    I have a "Inline hook ntkrnlpa.exe" rootkit, Trojan Crypt.ASHD (deleted), (deleted) Trojan horse, several more Generic28.BCBO a Trojan horse detected by AVG & quarantined, Windows Media Player opens at random & says now playing hcp_asx, I can't launc

  • CQ42-305au: update Bios

    Nice day! Last night I updated my bios, during the update my laptop freezes. I can't perform a hard reset, so I pulled the plug so turn off my camera. When I tried to power back on shift caps lock flashes 2 times and turns off laptop and then turn it

  • Kobo ereader installation problems

    I come from the Kobo ereader out of the box, plugged the USB cable, can not go further because the message "USB device not recognized by Windows. Can anyone help please.

  • Wireless newbie questions

    Hi all I am new to Cisco Wireless kit, even though I have experience working on another provider wireless kits Company has made the decision to go with Cisco and so here I will try to find my way. A controller will be deployed to HQ at this point we