Need for a Datagrid with variableRowHeight="true" and custom Item Renderer to display exact rows

Hi again, developers:
I'm in a search of a datagrid  with certain characteristics:
     - variableRowHeight = "true"
     - only one column
     - each row must have a custom item renderer with possibly different heights, and a fixed width
     - the datagrid must show always every item in the data provider with no vertical scroll bars, what means that the datagrid height must have always the exact height sum of all the item renderers it is displaying.
     - and no extra empty rows must appear in the last positions of the datagrid
The last two requirements are something difficult to achieve... for some reason, empty rows appear at the last positions of the datagrid. I post what i've managed to get:
<mx:Script>
     <![CDATA[
     private function resize():void
                if (dg.dataProvider)
                    var h:Number = dg.measureHeightOfItems( -1, dg.dataProvider.length);
                    dg.height = h;
     ]]>
</mx:Script>
<mx:DataGrid id="dg" width="530" horizontalCenter="0" verticalScrollPolicy="off"
        dataProvider="{dp}"
        wordWrap="true" variableRowHeight="true" showHeaders="false" dataChange="resize()" height="{dg.measureHeightOfItems(-1,dg.dataProvider.length)}" click="Alert.show(dg.rowCount.toString());">
        <mx:columns>
            <mx:DataGridColumn headerText="ID" width="50">
                <mx:itemRenderer>
                    <mx:Component>
                        <mx:TextArea height="{Math.random()*100}" wordWrap="true" backgroundColor="{Math.random() * 16777216}" paddingTop="0" paddingBottom="0"/>
                    </mx:Component>
                </mx:itemRenderer>
            </mx:DataGridColumn>
        </mx:columns>
    </mx:DataGrid>

Thanks Harui, but it doesn't help. If the border is set it will help, but the very big problem is the empty rows that appear at the end of the datagrid... I can't find a way of measuring correctly the height of the itemRenderers!
I'll update this thread if I manage to do it.

Similar Messages

  • Urgent: Need a docking speaker with internal battery and suitable for ipad or iphone4

    Need a docking speaker with internal battery and suitable for ipad or iphone4
    Does the following model fit those requirements?  Do you have any recommendation for me on a docking speaker?
    Philips - Fidelio Primo Docking Speaker for Apple® iPod® and iPad®
    Model: DS9/37 | SKU: 3374032
    Philips - Fidelio Docking Speaker for Apple® iPhone® and iPod® Model: DS7550/37 SKU: 2141072 
    Philips - Fidelio Docking Speaker for Apple® iPod® and iPhone® Model: DS8500/37 SKU: 3792704

    You should not need to have special IP address configurations to manage your devices and software. You can do this in the private network offered by any router, provided all devices being managed are behind that router. If for some reason you need a static IP on the network (such as for the server itself), then you can delegate one to the server in your router, but you dont need a special public IP address configuration from your ISP to set this up and make use of it.

  • I am trying to insert rows for alert_id 22 with diff abc_id and xyz_id

    I am trying to insert rows for alert_id 22 with diff abc_id and xyz_id
    these inserts will store in two tables that I have to join in the cursor.
    I have written cursor without passing cursor parameters. but here i need to pass acb_id and xyz_id along with alert_id.
    then if these are saticified with alert_id 22 then I want to stop the loop run, else i need to continue the loop. bcause the abc_id and xyz_id are diff for alert_id 22
    This is the issue I am facing!
    Please let me know if you have any idea. Let me know how to use cursor parameters here and in loop.
    Sample proc like this::
    Declare
    main_cursor
    another_cur
    alert_cur
    begin
    need to check first abc_id,xyz_id is already exist with alert_id 22
    if this set of records already exists then
    exit from the loop
    else
    continue with
    loop
    here coming the insert statements with different condition getting from first two cursors.(this part is ok for me)
    end loop
    end if
    Please write the logic if any idea on this.
    -LRK

    I want to stop if already alert_id is exist!

  • What Kind of microcontr​oller is needed for alarm system with PIR sensors

    Hi ! I'm student at Technical University Varna , 
    Bulgaria . I'm interessted to create my own alarm system with Labview,
    but I'm not sure what kind of controller i need and what kind of PIR
    sensors.                  Thank You

    This is duplicate post:
    What Kind of microcontroller is needed for alarm system with PIR sensors

  • I have Photoshop CS 5.5 version, but I've just changed my camera and I can't open my raw files. I need for my new camera Photoshop CC and Camera Raw 8.7 version. How can I do to update the old version? Thank you

    I have Photoshop CS 5.5 version, but I've just changed my camera and I can't open my raw files. I need for my new camera Photoshop CC and Camera Raw 8.7 version. How can I do to update the old version? Thank you

    Thank you for your valuable advice. I've solved the problem right now.
    Thanks
    2015-03-16 15:06 GMT+01:00 c.pfaffenbichler <[email protected]>:
        I have Photoshop CS 5.5 version, but I've just changed my camera and
    I can't open my raw files. I need for my new camera Photoshop CC and Camera
    Raw 8.7 version. How can I do to update the old version? Thank you
    created by c.pfaffenbichler
    <https://forums.adobe.com/people/c.pfaffenbichler> in *Photoshop General
    Discussion* - View the full discussion
    <https://forums.adobe.com/message/7302535#7302535>

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • Setup needed for ACH payments to the Employee and Supplier

    Hi,
    I am looking for a document to know the setup steps needed for ACH payment to the Employees and the Suppliers. Can anybody give me a detailed document on that or let me know where I will find one?
    Thanks,
    Arun
    Edited by: 834011 on Feb 4, 2011 3:55 PM

    hi
    I am working on 11i to R12 upgrade project.
    All I have is SQL and flatfile from 11.5.10 instance..I need to implement ACH in R12...
    How this flatfile is created in R12
    Do I need to create a Etext RTF template in R12? My bank is wellsfargo
    I need to create and implement ACH/credit/debit format in R12 environment.
    whate are the steps to create a bank accepting flat file in R12
    Can you please tell me how should create the flat file in r12? Should i create etext template or
    XML RTF template..
    appreciate your reply
    kp

  • When attempting to download, in the Launch Application panel, it says ..."this link needs to be opened with an application" and shows send to "CC URI Handler", but also Choose an application.  How do I get past this point, as neither option seems to work?

    When attempting to download, in the Launch Application panel, it says ..."this link needs to be opened with an application" and shows send to "CC URI Handler", but also Choose an application.  How do I get past this point, as neither option seems to work?

    Code 6 & Code 7 http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • When trying to download 4.3.3 for iphone 4 with firewall off and antivirus off but i keep on getting the error code 3259 - sometimes it times out after a few seconds other times it will be half anhour - can anyone help?

    Hi,
    When trying to download 4.3.3 for iphone 4 with firewall off and antivirus off i keep on getting the error code 3259 - sometimes it times out after a few seconds other times it will be half an hour - can anyone help?
    Thanks

    Before beginning the download, try temporarily disabling the antivirus, anti-adware, anti-spyware, and any other anti-whatever that is required and is running with that secure OS.

  • I payed for an album with 32 songs and only got 16

    I payed for an album with 32 songs and only got 16 please help

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Datagrid and Inline Item renderer problem

    I have a datgrid with two inline item renderers. The dataprovider for my DG is a nested object (objects within objects within objects i.e 3-layered).
    Main Object - 1st Level
                              |
                  2nd Level Object 1
                                    |
                                3rd level object '1' => ('name'=>somename,'id'=>someid)
                                3rd level object '2'
                                3rd level object 'n'
                 2nd Level Object 2
                                    |
                                3rd level object '1' => ('name'=>somename,'id'=>someid)
                                3rd level object '2'
                                3rd level object 'n'
    I use 2 item renderers (one for each datagrid column) which loops thro the 2nd level object1 and 2 respectively (the 2nd level object is a dynamic array of objects, in that the number of objects within keep changing).
    Within the item renderer I loop thro the 2nd level object using a foreach and then display the data. The data is a linkbutton, which when clicked , calls a remote object function to delete the data from the database
    now on the result event of the remote object function call, i call the function to repopulate the DG, so that the updated data is displayed.
    When i click on the linkbutton in the first row, the backend works perfectly fine (the data gets deleted from the database and the refreshed data is sent back), but for some reason, the deleted data suddenly appears in the 2nd row.
    When i delete it from the second row, it appears on the 3rd row (nothing happens in the backend since the data is already deleted).. and so on, till it appears on the last row and then the DG looks exactly the way it shld have looked after the first delete.
    This is just the beginning. The second item renderer also displays a linkbutton, which when clicked, displays that data in the previous column (the one where this data can be deleted). When i click on 1st row, the data gets added in the previous column of the second row .. and so on..
    Basically, my DG is acting really weird. I overrided the set data function in the item renderer to refrsh the data and called its invalidateDisplayList. I also call the Datagrid's invalidateDisplayList function after each refresh.  The behavior remains the same.
    Please help me on this ...

    Hi, Post a test code.... It will be a lot easier to help you Mich

  • How to link asset with purchase order and PO Item.

    Hello,
           I have to generate a report which contains columns
    Asset No , po no(ebeln) ,PO Item(ebelp),Material no etc
    My query is how to link asset with purchase order and      PO Item.
    I am selecting asset and po no. from anla  but how to get
    po item no(ebelp)?
    po line item is important in this report because every line item has differrent asset and material no.
    i tried to match asset no in mseg table but i am not getting asset no in mseg .
    how should i proceed ?

    Thanks Thomas & Srimanta for the quick response.
    When I checked EKKN table by entering PO there is no asset no. in anln1 field.
    Also I would like to add that, In me23n for a PO, account assignment category we are entering 'F' for internal order settlement.
    Where can i find the link between asset and po no(ebeln) and po item(ebelp)?
    Regards,
    Rachel
    Edited by: Rachel on Aug 11, 2008 7:23 AM

  • Help with datagrid custom item renderer

    Hi ,
    I have a datagrid in which I have a column with a checkbox and a custom Checkbox header renderer and an item renderer.
    When I try to disable the grid the checkbox column does not get disabled?
    Is there any way I can disable the entire grid along with the checkbox column?
    Thanks.

    Override updateDisplayList on the renderer and set the .enabled to match
    owner.enabled.

  • Differentiate between Items and Customer Items

    Differentiate between Items and Customer Items
    pls try to give information about this
    thanx

    Hi Joel,
    Funny you mentioned it, because just today I was thinking about that, and I thought that if it will happen, I will rant you on your forum dereliction of duties. So it seems you’re off the hook now :)
    Anyway, judging from the last 3.0/3.0.1 versions it seems like you are doing your other duties very well so I really don’t mind you keeping the lead.
    Best regards,
    Arie.

  • When I try downloading Kindle for PC Windows 8 I get the message "this link needs to be opened with an applicatio"-and I don't know what I have to do

    Hi, I have just brought a new laptop running windows 8 and have installed Firefox. My old laptop was running XP and I didn't have a problem running Firefox on it. I am trying to install Kindle for PC on my new laptop but I keep getting the message "this link needs to be opened with an application". I've never seen this message before on any web browser that I have used. I have "googled" the question and some suggestions are:
    > reloading Firefox-no point I've just loaded it
    > downloading through Internet Explorer-which I don't want to do as I want Firefox my browser of choice
    > Some talk of changing profiles-which I haven't a clue about.
    Any help in plain and simple English and assuming I have no prior knowledge (I'm a car driver rather than a mechanic) will be greatly appreciated.
    Thanks in advance

    I'm not familiar with downloads from the Windows 8 app store. Have you had problems with any other store downloads, or just this one? Is it an option to save the file?

Maybe you are looking for

  • Image display control scrolling does not work properly when zoomed in

    I am using a ROI on an image in the image display control. When zooming into the image to fine-adjust the positioning of the ROI, the image scrolling does not work properly. As far as I understand, the image should scroll automatically when the ROI i

  • Ssrs 2008 r2 keep objects in fixed locations when report is executing

    In an exisitng SSRS 2008 r2 report there are currently 5  tablixes. Right now in one of the tablixes, I am adding rectangles and textboxes to the one tablix. As I am adding these items to the SSRS 2008 r2 report, new items that I am adding to the rep

  • Firefox 27.0.1 on a Mac OS 10.9.2 the button to enable javascript is missing

    I am having a problem with the BBC iPlayer playing in a separate pop-out player. Their support people have asked me to check that javascript running is enabled. In the Preferences content tab there is no button to enable Javascript, in fact the Prefe

  • Updating TCURR with flat files?

    Hi SAP Community, I got some questions regarding the TCURR table where the exchange rates for various currencies are stored: 1) Can I update this table by using flat files, e.g. exchange rates coming in as CSV file? 2) If this is possible, how do I u

  • Itunes 11.1 upgrade

    Downloaded 11.1 and have now lost my library and devices? Can anyone help please?