Adjustable DAtagrid issue

I am working the with the flash form cfgrid and the
vdividedbox attribute of cfformgroup. How does one make the the
height of the cfgrid change when the moving the vdividedbox up and
down.
Here is the code...
<cfform action="
http://intraflir/shared/gridaction.cfc"
method="POST" name="listEditor" enctype="multipart/form-data"
timeout="9999999" style="color: ##000000;" skin="halosilver"
format="flash" preloader="no">
<cfset panelstyle="backgroundColor: ##CBDDF8;
headerColors: ##0080C0, ##0080C0;borderColor: ##FFFFFF;
barcolor:##999999; color: ##000000;font-size:12; font-family:arial;
">
<cfformgroup type="panel" style="#panelstyle#;"
label="Edit #session.tablename#" height="{Stage.height - 50}" >
<cfformgroup type="vdividedbox" >
<cfformgroup type="vbox">
<cfgrid name="listofdata" query="generallist" insert="yes"
delete="yes" sort="yes" italic="no" bold="no" appendkey="yes"
highlighthref="no" griddataalign="left" gridlines="yes"
rowheaders="no" rowheaderalign="left" rowheaderitalic="no"
rowheaderbold="no" colheaders="yes" colheaderalign="left"
colheaderitalic="no" colheaderbold="no" selectmode="browse"
picturebar="no" insertbutton="Insert" deletebutton="Remove "
textcolor="##000000" autowidth="true" style="color: ##000000;"
enabled="Yes" visible="Yes">
<cfgridcolumn name="id" display="no">
<cfgridcolumn name="#session.fieldname#"
headeralign="left" header="Category" dataalign="left" bold="no"
italic="no" select="yes" display="yes" headerbold="no"
headeritalic="no" >
</cfgrid>
<cfinput type="hidden" name="method" value="update">
<cfinput type="hidden" name="tablename"
value="#attributes.tablename#">
<cfinput type="hidden" name="fieldname"
value="#attributes.fieldname#" >
<cfinput type="hidden" name="location"
value="#attributes.location#">
</cfformgroup>
<cfformgroup type="hbox">
<cfformgroup type="horizontal" style="color:
##000000;"><cfinput type="submit" name="updateBook"
value="Save" ></cfformgroup>
</cfformgroup>
</cfformgroup>
</cfformgroup>
</cfform>

import the dataprovider class and try:
//add a listener for the complete event
function onDataLoad(evt:Event){
      var myData:XML =XML(evt.target.data);
      var myDataGrid:DataGrid = new DataGrid();
      var myDataGridHeader:Array = new Array();
      for each (var item:XML in myData.row[0].children())
       trace("Col: "+item.name());
       myDataGridHeader.push(item.name());
       var col:DataGridColumn = new DataGridColumn (item.name());
       myDataGrid.addColumn(col);
      myDataGrid.width = 700;
      myDataGrid.height= 200;
      myDataGrid.move(190, 150);
      addChild(myDataGrid);
      var rowList:XMLList = myData..row;
      var rowLen:int = rowList.length();
      var HeadLen:int = myDataGridHeader.length;
var dp:DataProvider=new DataProvider(myData);
myDataGrid.dataProvider=dp;
     removeEventListener(Event.COMPLETE, onDataLoad);

Similar Messages

  • Adjust dataGrid size to his content

    Hi
    I have a data grid... when i click a Button I populate this dataGrid with some information from a java server.
    I want to know how can i adjust the numer of rows and the size of the columns to the information i get dinamically...
    thanks a lot!

    Hi, Alex, thanks for the info. It turns out, I was wrong.  The way it looked made me think it was a row-resizing problem, but it turns out that the rows were resizing fine... it was the outer datagrid itself that was not resizing properly.  Apparently it has to do with the combination of variableRowHeight and rowCount.  The jira issue may look familiar to you.
    http://bugs.adobe.com/jira/browse/SDK-13507
    Anyway, I got this from the jira comments and works pretty good...
    height="{theGrid.measureHeightOfItems(-1, theGrid.dataProvider.length + 1)}"
    I also have to call similar code when the data provider of the inner grids add/remove items.
    Thanks!

  • DataGrid issue

    Hi,
    I'm having a strange issue that I'm hopeing someone else has encountered and solved.
    I have a datagrid in a module that I load into a shell. When the datagrid is displayed the header is collapsed and no text shows up ( header or DataGridColumns )
    I can get the header text to display if I set styles in my css for the datagrid ( or by setStyle ) for fontfamily, fontSize and color and specify the headerHeight I want. However, the rows remain "textless". I can see that the dataGrid is populated by my dataProvider since there are two rows inserted that I can rollover and select, but no text visible in the columns...
    I've tried a few different ways of providing the data - xml, ArrayCollection, manually put objects in the dataProvuider tag, but so far the data provider method does not seem to be the issue.
    Appreciate any help I can get on this.
    Thanks!

    Maybe you've specified a background color for those columns or the renderer for those columns is drawing a background.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Spark DataGrid Issue

    I'm working with the new Spark DataGrid, and I understand it's still a work in progress. I've also created a bug in the Adobe bug system. However, I want to be sure that I'm not overlooking something.
    Here is an example that illustrates the issue. If I create an itemRenderer for a column in a dDtaGrid, it takes 2 clicks to trigger the click event and 3 clicks to trigger the doubleClick event, if you click on the column with the itemRenderer. This happens about 95% of the time. Occasionally, it works as expected, but that's a rarity. So the question is, am I doing something wrong in the use of itemRenderers.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application 
    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="
    library://ns.adobe.com/flex/spark" xmlns:mx="
    library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import mx.controls.Alert; 
    ]]>
    </fx:Script>
    <s:DataGrid x="33" y="57" requestedRowCount="4" textAlign="center" click="Alert.show('Clicked')">
    <s:columns>
    <s:ArrayList>
    <s:GridColumn dataField="dataField1" headerText="Name" width="75">
     <s:itemRenderer>
     <fx:Component>
     <s:GridItemRenderer>
     <s:Label text="{data.dataField1}" left="5" paddingTop="10" paddingBottom="5"/>  
    </s:GridItemRenderer>
     </fx:Component>
     </s:itemRenderer>
     </s:GridColumn>
     <s:GridColumn dataField="dataField2" headerText="Column2" width="75"/>
     <s:GridColumn dataField="dataField3" headerText="Column3" width="75"/>
     </s:ArrayList>
     </s:columns>
     <s:ArrayList>
     <fx:Object dataField1="John" dataField2="data1" dataField3="data1"></fx:Object>
     <fx:Object dataField1="Ryan" dataField2="data2" dataField3="data2"></fx:Object>
     <fx:Object dataField1="Kyle" dataField2="data3" dataField3="data3"></fx:Object>
     <fx:Object dataField1="Edward" dataField2="data4" dataField3="data4"></fx:Object>
     </s:ArrayList>
     </s:DataGrid></s:Application>

    I have approximately the same problem : I want to listen double click (doubleClick or gridDoubleClick) on a spark datagrid.
    The double click event is always dispatched when I double-click on a column whose item renderer is a textArea (even with doubleClickEnabled=false).
    The double click event is SOMETIMES dispatched when I double-click on a column whose item renderer is an image or a label :
    1. When I double-click for the first time on the label renderer : it gives focus to datagrid and select item but does not dispatch doubleClick
    2. When I double-click on the textArea colum, then on the Label column of the same row, doubleClick is well dispatched
    3. When I double-click on the textArea colum, then on the Label column of a different row, doubleClick is not dispatched
    4. when I double-click on the label column after double-clicking on another row in the Label column, doubleClick is well dispatched
    I think it's the same behaviour with simple click event.
    Do you think spark datagrid is not stable enough and we should use mx datagrid instead ?
    Here is the code :
    <s:DataGrid dataProvider="{arrayCollection}" doubleClickEnabled="true" doubleClick="trace(event)" gridDoubleClick="trace(event)">
            <s:columns>
                <s:ArrayList>
                    <s:GridColumn>
                        <s:itemRenderer>
                            <fx:Component>
                                <s:GridItemRenderer>
                                    <s:Label text="{data.label}"/>
                                </s:GridItemRenderer>
                            </fx:Component>
                        </s:itemRenderer>
                    </s:GridColumn>
                    <s:GridColumn>
                        <s:itemRenderer>
                            <fx:Component>
                                <s:GridItemRenderer>
                                    <s:TextArea text="{data.label}"/>
                                </s:GridItemRenderer>
                            </fx:Component>
                        </s:itemRenderer>
                    </s:GridColumn>
                </s:ArrayList>
            </s:columns>
        </s:DataGrid>

  • Adjustment Layer Issue in CS3 & new Mac Pro

    anyone having the following issue:
    when adding an adjustment layer to a file I get a spinning beachball for 10-30 seconds before the adjustment layer is applied. Strange behaviour never seen before. New Mac Pro Dual Quad 3.2ghz, 10gb Ram, Nvidia Gefore 8800GT.
    S.O.S.
    Thx!

    How did you update to 10.5.3?
    Via Software Update; or from the COMBO?
    [I notice that MacFixit are also now strenuously urging people to stay away from SU and to use the COMBO instead.
    [Pace Stockholm!]
    And did you run DiskWarrior and Repair permissions both before and after you installed the new software?

  • Flex Datagrid Issue

    Hi
    I am using a flex datagrid component which has around 48 columns.
    There is a option for the user to select which columns he wish to see.
    Based on the user's selection the visible columns will be 1-50.
    The Datagrid is inside a Vbox container.
    The issue is, based on the screen resolution and the number of columns selected extra scroll bars(horizontal and vertical) appears
    for the whole Vbox in addition to the Datagrid's scrollbars.
    i.e if resolution is high and user selects more than 46 columns extra scroll bar appears.
    If resolution is low the extra scroll bars appears as soon as the visible columns is more than 20.
    Please help me if there is any resolution in preventing the extra scroll bars from appearing.Ideally, Since datagrid has its own scroll bars making more columns visible should not increase the width of datagrid.
    Any help will be appreciated

    Have you hard-coded the height and width of both the VBox and the Datagrid? If you set the datagrid height and width 40 pixels or so less than the VBox it should solve that problem, I'd think.
    Or, you could set your DataGrid height and width to 90%.
    Sorry if you've already tried this. Another option is to set your datagrid's scroll policy to "off" and just leave the VBox's scroll bars available.
    -John

  • Adjustment Brush issue over Windows 7

    I’m using Windows 7 and Lightroom 2.5 and I’m having some issues with the “Adjustment brush”.
    The brush cursor is not well drawn.
    I get like “half circle and half plus”.
    Or, I get multiple cursors: like 3 or 4.
    The tool works ok, but the cursor is terrible.
    Also, this issue only happens at some brush and feather size. In the huge and in the smallest ones doesn't happens.
    Any ideas?
    BTW, also happened with the 2.4 version.

    The most likely cause is a video card driver issue. For example, Lightroom and the nVidia Desktop nView control panel don't play well together. If using an nVidia card it might be worth changing the settings from Quality to Performance or vice versa (can'\t recall which). Also check that you have the most up to date video card driver.

  • Lightroom 4 - Spot removal and adjustment brush issues

    In Lightroom 4, my spot removal and adjustment brush tools will not work on all areas of photos (in particular faces and the center of photos). The cursor seems to show the tool only on the outside portions of the photo.  Any suggestions?

    I have seen this a couple time and a restart of Lr has always fixed it.  It seems like there is some kine of dialog box waiting for input "hidden" behind Lr as it its not there if you minimize Lr.  This has been reported many times for a LONG time so it is probably one of the Lr bugs that is not getting fixed.  To be fair to Adobe, if someone could reproduce this problem it might get fixed but it seems to be pretty obscure.  BTW, I think Ihave seen reports of it in Lr5 also so hopefully it will get fixed in Lr 6

  • Camera raw 6.5 adjustment brush issue

    Hi all I've asked this question over at adobe
    Ok since I've installed the latest lion update 10.7.2 on my mac bookpro 2.3 intel core i5 memory 8 gig 1333 MHz DDR3 the exposure ajustment brush in Camera raw 6.5 is not working properly it dosen't always give me the round brush icon and it places the pin randomly so it's next to useless.I cannot find an answer anywhere am I the only person on this planet with this issue?I've even uninstalled and reinstalled my photoshop cs5 to no avail any help would be greatly appreciated
    regards Daryl
    The thread is here http://forums.adobe.com/message/3982929#3982929
    My graffix card is the one mentioned in the discussion a Intel HD Graphics 3000
    Is anyone at apple looking into this or has anybody got a solution as this is causing serious issues with my work flow
    king regards Daryl

    Ok seem like this is a known bug from the last 2 months.....when is apple going to retify this I've been using mac gear for years to avoid all these kind of dramas
    here's a link to a topic covering the issue
    http://feedback.photoshop.com/photoshop_family/topics/brushes_not_working_on_201 1_macbook_air

  • Dynamic DataGrid Issues

    I have a data grid that is updated via streaming data every 5 seconds.  However, when the datagrid updates, all of the user's selections/sorting gets wiped out and the data resets.
    Right now the data is bound to an array directly returned from my service call, so every time it "refreshes" the bound array refreshes triggering the redraw of the grid.
    How can I save the "current state" of the data grid so that when the data updates, all of the sorts/selections/whatever is saved.
    And example of what im looking for is kind of like the windows task manager.  Everything resorts in real time as the data updates, if you have a column sorted.
    Any ideas?

    Thanks for the response.
    That works, but the grid data will not refresh now unless I interact with it.  If I re-sort a column for instance it will give my column new values, but just sitting there it doesnt update. 
    I have seen code where there is a dataprovider.refresh() call, but that is not available on my dataProvider.
    Any suggestions?

  • Adjustment layer issue

    When using an adjustment layer and clicking the stopwatch for the evolution option, there should be a text box that appears but in the 2014 version it doesn't, how do I find this text box?

    effects control panel. I'm not sure what the correct lingo is but there should be a little bar at the bottom when I click the stopwatch next to the 'evolution' option where I can enter the script "time*250" however when I do this the box isn't coming up? Im using the 2014 version. I'll provide a link to the tutorial I'm using below with the time of the example.
    example in video at time:10:11sec 
    After Effects Tutorial: Smoke Text Effects - YouTube

  • LR6 Soften Skin adjustment brush issue

    Anyone having problems with the Soften Skin adjustment brush in LR6 for very backlit photos? Mine is showing as very dark since upgrading my catalogue from LR5 and I can't get it to blend in with the skin tones now. Thank you!

    Hi,
    EDIT and delete my post to replace it with this:
    I JUST FOUND THE ANSWER!
    See this post:
    http://forums.adobe.com/message/1465984#1465984
    Don says: "In Develop press K for Adjustment Brush (or click the Brush Icon). The it appears in the drop down menu next to Effect: that defaults to Exposure and has a small set of up and down arrows to the right of it. Soften Skin is last after a divider. It also appears (????) there for Graduated Filter (M). "
    In my case, I was looking in the wrong place for the preset.  It is not in the list of presets in the left column.  Instead, it is in the Effects dropdown right in the Adjustment Brush palette.
    John

  • Several datagrid issues

    I have a Datagrid that is populated dynamically. For each
    item there are 5 columns all having the same width. I set the grid
    to be wide enough to display one set of 5 columns, one of the
    columns uses a numeric stepper as an itemRenderer/Editor. The
    problem occurs on scroll the stepper still refers to the first set
    of columns. How can I get so the steppers are reassigned to the new
    data on scroll of the Grid? Any help as always is greatly
    appreciated.

    "Mush15" <[email protected]> wrote in
    message
    news:gk7mbd$7bl$[email protected]..
    >I have a Datagrid that is populated dynamically. For each
    item there are 5
    > columns all having the same width. I set the grid to be
    wide enough to
    > display
    > one set of 5 columns, one of the columns uses a numeric
    stepper as an
    > itemRenderer/Editor. The problem occurs on scroll the
    stepper still refers
    > to
    > the first set of columns. How can I get so the steppers
    are reassigned to
    > the
    > new data on scroll of the Grid? Any help as always is
    greatly appreciated.
    >
    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
    Q2

  • Lightroom 2.4 Adjustment Brush issue

    I currently use Windows XP home and Lightroom 2.4 updated within the last two weeks. When I use the Adjustment Brush it creates the ruby lith mask over the image and dose not show any interactive live adjustments as I've seen on many of the on-line tutorials. Only after I've clicked the close button or the Adjustment Brush are the changes made. I then have to reselect the Adjustment Brush click the appropriate pin and get the same ruby lith mask and repeat the process time and again to achive the results I want.  I have the original 2.2 version on my laptop an it works as per the tutorials. Any pointers as to where I am going wrong would be welcome.

    On Mac ctrl +h hide\show pins, o - shows mask, shift + o changes color of the mask

  • Adjustment Brush Issue

    I've been using the adjustment brush for quite sometime, via LR2 and now LR3.  Currently I am using LR3 and it just stopped working all together.  It won't let me update the previous brush strokes made, nor will it make any changes through new brush strokes.  It will place a new pin, but nothing will take effect or become highlighted when I have the arrow over it, like it does the older pins I had set that work.  I've tried turning certain settings off and on again, as many as I can think of and nothing is working. 
    When it began doing this today though, I did try something that I'm not quite familiar with.  I was trying out the color settings under the brush adjustments and when I tried to go back to using exposure, saturation, etc. it hasn't worked since.  Anyone have an idea as to what I can do to get it working again?

    Never mind .
    Hal

Maybe you are looking for

  • Can i connect powermac G4 to LCD tv?

    Is it possible to connect my Power Mac G4 (Quicksilver 2002) to a samsung LCD tv? will the DVI to Video adaptor work? if this connector is only for the G5, is there any other way to do it? i would like to use my G4 for presentations, dvd playback etc

  • Circular linked list while loop

    i have a circular linked list and i'd like a while loop to iterate though all of them. my problem is that it always excludes the last node. i know why, it's due to the fact that "current.next != alive" skips it from ever accessing the last node. i ca

  • Where to put files in using runtime.exec(run.exe)?

    I try to use the following program in EJB to call my EXE program in the J2EE server: runtime.exec("c:\\j2ee\\public\\exe\\run.exe temp.txt"); In the execution of mill_turn.exe, it will open several files for read and write. So where to put the file t

  • How can I add the Display name on Directory Number

    I created a New Directory NR ( 3131 ) and I put  a  name to Alerting Name/ASCII A Name and on the Forward All 00xxxxxx, but vhen I call the Directory Nr from a Cisco Phone i see on my display the nr from froward, how can I set up from CallManger to s

  • How to make an embedded blog scroll.

    Hi, In my site, Deleteproductions.com/film.html, I have included an wordpress blog for my project (so i can easily update it whenever i want en where i want). But on mac the page automatically scrolls, which is great, but on ipad it does not. Can you