100% scaling problem with datagrid

I have a situation where I have an AdvancedDataGrid in an hbox . I have a checkbox called scrollTable that changes the width of the AdvancedDataGrid
<mx:HBox height="100%" id="gridWrap" width="100%" >
<mx:AdvancedDataGrid
if(scrollTable.selected){
                        deals.width = 2200;
                    }else{
                        deals.percentWidth = 100;
                    gridWrap.validateSize();
Everything is contained in a panel with a fixed width set by the user. The behaviour I want is for just the hbox to have scroll bars when the AdvancedDataGrid  is given a size of 2200 , not the outer containing panel to get scrollbars and the hbox expanding inside the panel. I suspect that the problem is because the hbox has 100%, which is what I need because the user can resize the panel.
Hope someone can help
thanks

The quickest solution is to:
1) Change the model variable to:
public var _xlcDg:XMLListCollection
1) set resultFormat="e4x" on the HTTPService instance
2) in the handler, do:
var xmlResult:XML = XML(event.result);
trace(xmlResult.toXMLString()); //to see what you have
var xlPersons:XMLList = xmlResult.person; //you can use the
XMLlist directly, but it is not best practice
trace(xlPersons.length); //what you expect?
_xlcDg = new XMLListCollection(xlPersons);
If you want an ArrayCollection, create a class to be your
value object, then loop through the XMLList and create a new
instance of the VO, assign the propderty values form the xml node,
then addItem() to put it in the array collection.
Tracy

Similar Messages

  • Problem with datagrid horizontal scrollbar

    Hi all,
    I am facing problem with Datagrid HorizontalScrollBar.
    As per requirement i need to seperate the Horizontal and verticalscroll bars from grid.
    So what i did was, i created HScroll & VScroll components and associated them Datagrid scroll bars. I made HorizontalScrollPolicy and VerticalScrollPolicy "off" for datagrid.
    As i binded values to HScroll & VScroll components which are out side of datagrid, i should be able to scroll datagrid using those components.
    Its working fine for VScroll. When i scroll VScroll component am able to scroll datagrid vertically.
    Problem is with HorizontalScrollPolicy in datagrid, when i change the policy to "on" i can see the scrollbar down to datagrid and able to scroll.  once i change the policy to "off", datagrid columns are getting resized and datagrid width will set back to its container width without scrollbar, because of this there will be no HorizontalBar for datagrid to assiciate with HSCroll Component.
    Code given below:
    [AS]
    private function vScrollGrid(event:ScrollEvent):void
      mainTable.verticalScrollPosition=vScrollBar.scrollPosition;
    private function hScrollGrid(event:ScrollEvent):void
      mainTable.horizontalScrollPosition=hScrollBar.scrollPosition;
    }[/AS]
    [CODE]
    <mx:HBox height="100%" verticalScrollPolicy="off"  horizontalScrollPolicy="off">
            <mx:DataGrid dataProvider="{reportData}"
                 id="mainTable"   
                 height="100%"
                 width="100%"
                 textAlign="right" allowMultipleSelection="true" visible="false" verticalScrollPolicy="off" horizontalScrollPolicy="off"/>
            <mx:VScrollBar id="vScrollBar" height="100%" pageSize="1" scrollPosition="{mainTable.verticalScrollPosition}" maxScrollPosition="{mainTable.maxVerticalScrollPosition}" scroll="vScrollGrid(event)"/>
    </mx:HBox>
    <mx:HScrollBar id="hScrollBar" height="100%" pageSize="1" scrollPosition="{mainTable.horizontalScrollPosition}" maxScrollPosition="{mainTable.maxHorizontalScrollPosition}" scroll="hScrollGrid(event)"/>
    [/CODE]
    Please help me to resolve this
    Thanks & Regards
    Pratap

    1. Try calling setEnabled(true); on the scrollbar
    2. Check that you need to scroll. If efffectively the knob (as the API docs call it) is larger than the scrollbar, it probably won't be shown.

  • Image scaling problem with object handles

    Hi,
    I am facing scaling problem.I am using custom actionscript component called editImage.EditImage consists imageHolder a flexsprite which holds
    image.Edit Image component is uing object handles to resize the image.I am applying mask to the base image which is loaded into imageholder.
    My requirement is when I scale the editImage only the mask image should be scaled not the base image.To achieve this I am using Invert matix .With this
    the base image is not scaled but it  is zoomed to its original size.But the base image should not zoomed and it should fit to the imageholder size always. When I scale the editImage only the mask image should scale.How to solve this.Please help .
    With thanks,
    Srinivas

    Hi Viki,
    I am scaling the mask image which is attached to imageHolder.When i  scale
    the image both the images are scaled.
    If u have time to find the below link:
    http://fainducomponents.s3.amazonaws.com/EditImageExample03.html
    u work with this component by masking the editImage.If u find any solution
    for scale only mask ,plz share the same.
    thanks,
    Srinivas

  • Satellite P775-100 3D: Problem with first initialization of the 3D function

    Hi,
    I have a problem with my new Toshiba Satellite Notebook P775-100 3D.
    Wenn I start the 3D wizard for the first 3D using, then disappears the mouse coursor from screen.
    The mouse works but is not visible. Sometimes by trying can to find the button "continue" or a checkbox.
    Unfortunately, I can not get the wizard with nonvisible mouse cursor until to the end.
    The Keys e.g. TAB, Coursor-keys etc. from Keyboard helps not more.
    Please has anyone a Idee for the solution of my problem?
    Many thanks.

    Hi,
    It now works but I do not know was the problem was.
    thx

  • Problems with DataGrid

    I'm in trouble here with DataGrid, i have an implementation
    where a public bindable property of a custom component is used
    binded as the dataProvider for a Datagrid inside this component,
    but, when i change this property and then tell my ViewStack to jump
    over to that component, the DataGrid sometimes doesn't get
    refreshed with the right data. I tested if the dataProvider is
    right and it is, and when i just push (meaning .push(item:*)) an
    item in the list, the DataGrid shows correctly. problem is, i must
    show data without having to push an item, so i work-arounded it
    with a timer implementation that pushes and deletes an empty value,
    what's by the way terrible.
    I went to JIRA trying to see what's been made on this, but
    all related bugs are told to be historical and shows no information
    at all.
    Am i doing something wrong? or it's a bug no one talks
    about?

    "tech_holic" <[email protected]> wrote in
    message
    news:gq8lok$jdh$[email protected]..
    > I'm in trouble here with DataGrid, i have an
    implementation where a public
    > bindable property of a custom component is used binded
    as the dataProvider
    > for
    > a Datagrid inside this component, but, when i change
    this property and
    > then
    > tell my ViewStack to jump over to that component, the
    DataGrid sometimes
    > doesn't get refreshed with the right data. I tested if
    the dataProvider is
    > right and it is, and when i just push (meaning
    .push(item:*)) an item in
    > the
    > list, the DataGrid shows correctly. problem is, i must
    show data without
    > having
    > to push an item, so i work-arounded it with a timer
    implementation that
    > pushes
    > and deletes an empty value, what's by the way terrible.
    > I went to JIRA trying to see what's been made on this,
    but all related
    > bugs
    > are told to be historical and shows no information at
    all.
    > Am i doing something wrong? or it's a bug no one talks
    about?
    If you use .push into the internal Array of an
    ArrayCollection, then it's
    not going to generate any of the events that ArrayCollection
    uses if you use
    its official API (addItem/removeItem).
    I suspect that what you're doing is replacing the
    ArrayCollection when you
    populate it rather than just adding or removing.
    HTH;
    Amy

  • Problems with DataGrid and WordWrap

    Hi all,
    I have some problem with the headerText property of the
    mx:DataGridColumn, when the text is longer than the column width.
    Even if I set headerWordWrap property to true, sometimes the text
    shown in the header is truncated.
    The behaviour is strange: if you change the column width
    moving the mouse, sometimes the text is truncated and other times
    it isn't.
    Can somebody help me or confirm that it is a Flex bug, please
    thanks
    cheers,
    ennio

    Had you installed Flex 2 Hotfix 1? This fix fixes many bugs
    when columns are resized.

  • Problems with datagrid from FXP, I did something, but I got problems with mysql...

    Good night My name is Michel.
    Right!, I have a challenge to myself. that is to relearn flash builder, I have a few years without touching it or anything.
    But I still have the ease of get these new things added.
    Going straight to the point, as I am Brazilian, some things from the file will be in Portuguese, I hope you can help me! I appreciate it. Well, I'm creating a Datagrid, this Datagrid was done in FXP, and imported into the FB, I did some workarounds and got where I wanted, only that there are problems.
    the scheme is this:
    MySQL database = NoticiasService
    Connected by Zend / PHP.
    Everything right until here.
    I have the file main.mxml> DatalistSinspebNoticias.mxml> DatalistSinspebNoticiasRepeatedItemSkin.mxml - just here.
    I will not make a closed file (FXP), because my file is just a mess and only I understand the way it was organized.
    The problem is:
    The datagrid is infinite, I want to limit it to eight items repeated.
    The link does not work with "TextConverter" to "HTML"
    FB lives showing me glitches.
    then I will initiate an implementation of other applications, such as adding data to the DB, and Update DB. Thanks Folks!
    Main.mxml ------------------------------------------------------------------------->
    <?xml version='1.0' encoding='UTF-8'?>
    <s:Application xmlns:ATE="http://ns.adobe.com/ate/2009"
                                     xmlns:ai="http://ns.adobe.com/ai/2009"
                                     xmlns:fc="http://ns.adobe.com/flashcatalyst/2009"
                                     xmlns:d="http://ns.adobe.com/fxg/2008/dt"
                                     xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:lib="assets.graphics.caixa_feed_sinspeb.*"
                                     xmlns:flm="http://ns.adobe.com/flame/2008"
                                     xmlns:noticiasservice="services.noticiasservice.*"
                                     width="100%" height="100%" backgroundColor="#FFFFFF" preloaderChromeColor="#FFFFFF"
                                     fc:previewHeight="380" fc:previewWidth="430">
              <fx:Style source="Main.css"/>
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected function list1_creationCompleteHandler(event:FlexEvent):void
                                            getAllNoticiasResult.token = noticiasService.getAllNoticias();
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <s:CallResponder id="getAllNoticiasResult"/>
                        <noticiasservice:NoticiasService id="noticiasService" showBusyCursor="true"/>
              </fx:Declarations>
              <fx:DesignLayer d:id="2" d:userLabel="Layer 1">
                        <s:List id="list1" x="10" y="8"
                                            creationComplete="list1_creationCompleteHandler(event)"
                                            skinClass="components.DataListSinspebNoticias" labelField="conteudo_nt">
                                  <s:AsyncListView list="{getAllNoticiasResult.lastResult}"/>
                        </s:List>
              </fx:DesignLayer>
    </s:Application>
    ------------------------------------------------------------------------->
    DatalistSinspebNoticias.mxml ------------------------------------------------------------------------->
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:d="http://ns.adobe.com/fxg/2008/dt"
                        xmlns:flm="http://ns.adobe.com/flame/2008"
                        xmlns:ai="http://ns.adobe.com/ai/2009"
                        width="407" height="374">
              <fx:Metadata>[HostComponent("spark.components.List")]</fx:Metadata>
              <s:states>
                        <s:State name="normal"/>
                        <s:State name="disabled"/>
              </s:states>
              <s:DataGroup id="dataGroup" x="0" y="0" width="407" height="353" clipAndEnableScrolling="true"
                                             itemRenderer="components.DataListSinspebNoticiasRepeatedItemSkin"
                                             height.normal="374" buttonMode.normal="true">
                        <s:layout>
                                  <s:VerticalLayout gap="1"/>
                        </s:layout>
              </s:DataGroup>
    </s:Skin>
    ------------------------------------------------------------------------->
    DatalistSinspebNoticiasRepeatedItemSkin.mxml ------------------------------------------------------------------------->
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:s="library://ns.adobe.com/flex/spark"
                                            xmlns:fx="http://ns.adobe.com/mxml/2009"
                                            xmlns:d="http://ns.adobe.com/fxg/2008/dt"
                                            xmlns:flm="http://ns.adobe.com/flame/2008"
                                            xmlns:ai="http://ns.adobe.com/ai/2009"
                                            width="402" height="39" autoDrawBackground="false">
              <fx:Script>
                        <![CDATA[
                                  import flashx.textLayout.conversion.ConversionType;
                                  import flashx.textLayout.conversion.TextConverter;
                        ]]>
              </fx:Script>
              <s:states>
                        <s:State name="normal"/>
                        <s:State name="hovered"/>
                        <s:State name="selected"/>
              </s:states>
              <s:Rect x="5" y="3" width="78" height="32">
                        <s:fill>
                                  <s:SolidColor color="#01557C"/>
                        </s:fill>
                        <s:stroke.hovered>
                                  <s:SolidColorStroke caps="none" color="#96F2FF" joints="miter" miterLimit="4" weight="2"/>
                        </s:stroke.hovered>
              </s:Rect>
              <s:Rect d:id="3" x="85.5" y="0.5" width="315" height="37" flm:variant="1"
                                  x.hovered="86" y.hovered="1">
                        <s:fill>
                                  <s:LinearGradient x="157.5" y="0" scaleX="32" rotation="90">
                                            <s:GradientEntry ratio="0" color="#FFFFFF"/>
                                            <s:GradientEntry ratio="0.488676" color="#E0EEF9"/>
                                            <s:GradientEntry ratio="1" color="#D6E9F7"/>
                                  </s:LinearGradient>
                        </s:fill>
                        <s:stroke>
                                  <s:SolidColorStroke caps="none" color="#666666" joints="miter" miterLimit="4" weight="1"
                                                                                    color.hovered="#999999" weight.hovered="2"
                                                                                    color.selected="#0065FF"/>
                        </s:stroke>
              </s:Rect>
              <s:Rect d:userLabel="Item Highlight Rectangle" x="5" y="0" width="396" height="33" alpha="0">
                        <s:fill>
                                  <s:SolidColor color="0xCED7EE"/>
                        </s:fill>
              </s:Rect>
              <s:RichText  x="20" y="12" width="48" height="14" ai:aa="2"
                                            color="#FFFFFF" columnCount="1" fontFamily="Myriad Pro" fontSize="14" kerning="on"
                                            tabStops="S0" text="{data.datada_nt}" flm:variant="2" whiteSpaceCollapse="preserve"/>
              <s:RichText x="89.95" y="8" width="309" height="24" ai:aa="2" color="#000000" columnCount="1"
                                            fontFamily="Arial Narrow" fontSize="11" kerning="on"
                                            tabStops="S0 S50 S100 S150 S200 S250 S300"
                                            textFlow="{TextConverter.importToFlow(data.conteudo_nt, TextConverter.TEXT_FIELD_HTML_FORMAT)}"
                                            trackingRight="16%"
                                            flm:variant="3" whiteSpaceCollapse="preserve"
                                            buttonMode.normal="false" lineThrough.normal="false">
                        <s:filters>
                                  <s:GlowFilter alpha="1.0" blurX="0" blurY="0" color="#000000" inner="false"
                                                                  knockout="false" quality="2" strength="1"/>
                        </s:filters>
              </s:RichText>
              <s:Path includeIn="hovered" x="0.35" y="12.35" data="M 12.40 7.15 L 0.03 14.29 0.03 0.01 Z ">
                        <s:stroke>
                                  <s:SolidColorStroke caps="none" color="#666666" joints="miter" miterLimit="4" weight="1"/>
                        </s:stroke>
                        <s:fill>
                                  <s:LinearGradient rotation="90">
                                            <s:GradientEntry color="#FFFFFF" ratio="0"/>
                                            <s:GradientEntry color="#E0EEF9" ratio="0.488676"/>
                                            <s:GradientEntry color="#D6E9F7" ratio="1"/>
                                  </s:LinearGradient>
                        </s:fill>
              </s:Path>
    </s:ItemRenderer>
    ------------------------------------------------------------------------->

    The following says how to restore from backup.
    iOS: How to back up
    If you go to iTunes>Preferences>Devices you can see if you have an iTunes backup. You need one dated before or the exact time you started the restore.

  • Problem with DataGrid/AdvancedDataGrid using variableRowHeight

    I need a column with more that an information for example(title and description of a movie in the same cel)
    and for that I created a custorm renderer to hold the information togeter. Following the code for the renderer..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%"
                  verticalScrollPolicy="off" horizontalScrollPolicy="off"
                  paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0">
           <mx:HBox horizontalGap="0">
                 <mx:Label text="Title:"/>
                 <mx:Label text="{data.title}"/>
           </mx:HBox>
           <mx:HBox horizontalGap="0" paddingLeft="3" paddingRight="3">
                 <mx:Label id="descLbl" text="Description:"/>
                 <mx:Text text="{data.description}" width="{width-6-descLbl.width}"/>
           </mx:HBox>
    </mx:VBox>
    Because I don't need something special when the data is get or set I didn't override that functions.
    Since the Text control need explicit width to wordWrap the text I binded that value to the available space instead of use "100%".
    Of course not all the descriptions has the same length and the description could take 1, 2, 3 or more rows so I set the valiableRowHeight of the grid to "true".
    When load everything works, mistakes comes when you try to enlarge the column to make a description to take less row (example row #1 before sesizig the description need 3 rows of text and after the resizing the descriotion need only 2 rows) as soon as you resized the column you notice that the text of the description effectly refreshed and takes only 2 rows but the height of the row could countain the 3rd row of the description that no more exists.
    If you do another resize operation the row height refresh correctly (example click on the column separator)
    I also tried to do table.validateNow(); on the mouse up event of the table.
    Following the code of a simple application.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100%" height="100%">
           <mx:Script>
                 <![CDATA[                 
                        import mx.collections.ArrayCollection;
                        import mx.controls.Alert;
                        import mx.core.UIComponent;
                        import mx.events.FlexEvent;
                        [Bindable]
                        public var dp:ArrayCollection = new ArrayCollection([
                               {title:"Ghost Rider: Spirito di vendetta", description:"Johnny Blaze, funambolo del motociclista " +
                                                                                                                             "trasformato in spirito della vendetta dal " +
                                                                                                                             "demonio in virtù di un patto firmato con il " +
                                                                                                                             "sangue per la salvezza del padre, vive " +
                                                                                                                             "ritirato, rifiuta il proprio status e la " +
                                                                                                                             "propria missione. A richiamarlo in attività " +
                                                                                                                             "è la Chiesa, in Romania infatti il diavolo " +
                                                                                                                             "si è palesato di nuovo per sguinzagliare " +
                                                                                                                             "nuovi sgherri alla ricerca di un bambino " +
                                                                                                                             "a cui tiene in maniera preoccupante."},
                               {title:"La furia dei titani", description:"Gli uomini non pregano più, se ne sono " +
                                                                                                                             "disamorati dei loro dei, e come conseguenza " +
                                                                                                                             "questi stanno a poco a poco perdendo i " +
                                                                                                                             "propri poteri, compresa quell'immortalità " +
                                                                                                                             "che li rende sempre giovani. Alcuni sono " +
                                                                                                                             "anche morti. Intimoriti da quel che sta " +
                                                                                                                             "accadendo alcuni superstiti pianificano " +
                                                                                                                             "di riportare in vita Chronos dal Tartaro, " +
                                                                                                                             "spodestare Zeus e spazzare via il mondo. " +
                                                                                                                             "Per evitare il disastro viene richiamato " +
                                                                                                                             "in battaglia Perseo, che dopo aver sconfitto " +
                                                                                                                             "il mitologico Kraken si è ritirato a vita " +
                                                                                                                             "da pescatore. Sarà però costretto a rimettere " +
                                                                                                                             "mano alla spada dopo essere venuto a sapere " +
                                                                                                                             "dal morente zio Poseidone che il padre degli " +
                                                                                                                             "dei (nonchè suo) è stato catturato."},
                               {title:"Paranormal Xperience 3D", description:"Un gruppo di studenti di psichiatria accetta la " +
                                                                                                                "proposta del professore più autoritario della " +
                                                                                                                "facoltà: andranno in un villaggio minerario " +
                                                                                                                "abbandonato dove sarà loro possibile verificare " +
                                                                                                                "se i fenomeni paranormali esistono veramente. " +
                                                                                                                "Per il viaggio utilizzano un pulmino che viene " +
                                                                                                                "fornito loro da Diana, sorella della studentessa " +
                                                                                                                "Angela, che si unisce al gruppo. Sarà proprio il " +
                                                                                                                "passato infantile delle due sorelle ad entrare " +
                                                                                                                "drammaticamente nell'indagine."}
                        protected function table_mouseUpHandler(event:MouseEvent):void
                               table.validateNow();
                 ]]>
           </mx:Script>
           <mx:VBox horizontalScrollPolicy="off" verticalScrollPolicy="off"
                         width="500" height="500"
                         horizontalGap="0">
                 <mx:DataGrid id="table"    width="500" height="500"
                                                    dataProvider="{dp}" variableRowHeight="true" mouseUp="table_mouseUpHandler(event)">
                        <mx:columns>
                               <mx:DataGridColumn id="titleCol" dataField="title" headerText="Title" wordWrap="true"/>
                               <mx:DataGridColumn id="titDescCol" itemRenderer="CustomRenderer" wordWrap="true"/>
                        </mx:columns>
                 </mx:DataGrid>
           </mx:VBox>
    </mx:Application>
    The descriptions are in italian but for a simple example the langage of the text  doesn't matter
    Hope can you help me guys otherwise I will be creazy very soon trying to solve this problem.

    Does your parent clip have any styles associated with it?
    Something is overwriting the Arial font.
    Try _lockroot if that persists.

  • Problem with DataGrid DataSource

    Hello,
    I am having problems to populate my advanced datagrid. Though
    the grid is getting headers, it is not getting the data from my
    datasource (Please note that I am using a cfc functions called
    "getOrds" to retrieve the data.
    Am I missing something in the code??
    It would be great if someone could help me out with this one.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical">
    <mx:Script>
    <![CDATA[
    import mx.collections.IHierarchicalCollectionView;
    [Bindable]
    [Bindable]
    public var ords:ArrayCollection = new ArrayCollection;
    public function getOrds(event:ResultEvent):void
    ords = event.result as ArrayCollection;
    ]]>
    </mx:Script>
    <mx:AdvancedDataGrid id="adg" x="28" y="64" width="609"
    height="228" creationComplete="gc2.refresh();"
    initialize="gc2.refresh();" designViewDataType="tree"
    defaultLeafIcon="{null}" folderClosedIcon="{null}"
    folderOpenIcon="{null}" >
    <mx:dataProvider>
    <mx:GroupingCollection id="gc2" source="{ords}" >
    <mx:Grouping>
    <mx:GroupingField name="rule_no" >
    <mx:summaries>
    <mx:SummaryRow summaryPlacement="group">
    <mx:fields>
    <mx:SummaryField dataField="rule_no" operation="SUM" />
    </mx:fields>
    </mx:SummaryRow>
    </mx:summaries>
    </mx:GroupingField>
    <mx:GroupingField name="cakes">
    <mx:summaries>
    <mx:SummaryRow summaryPlacement="group" >
    <mx:fields>
    <mx:SummaryField dataField="cakes" operation="COUNT" />
    </mx:fields>
    </mx:SummaryRow>
    </mx:summaries>
    </mx:GroupingField>
    </mx:Grouping>
    </mx:GroupingCollection>
    </mx:dataProvider>
    <mx:groupedColumns>
    <mx:AdvancedDataGridColumn headerText="rule_no" />
    <mx:AdvancedDataGridColumn headerText="Cakes"
    dataField="cakes"/>
    </mx:groupedColumns>
    </mx:AdvancedDataGrid>
    <mx:RemoteObject id="myService" destination="ColdFusion"
    source="components.AdvancedDG" showBusyCursor="true"
    fault="Alert.show(event.fault.message,'Error')">
    <mx:method name="getOrds" result="getOrs(event)"/>
    </mx:RemoteObject>
    </mx:Application>

    Please see following changes:
    <mx:ViewStack id="menuOptions" width="100%" paddingBottom="5" height="100%">
          <mx:Panel width="100%" height="100%" layout="absolute" id="panel1" label="Panel 1" title="Panel 1" titleIcon="@Embed(source='resources/panel_icon.png')">
                <mx:DataGrid id="grid1" width="100%" height="100%"/>
          </mx:Panel>
          <mx:Panel width="100%" height="100%" layout="absolute" id="panel2" label="Panel 2" title="Panel 2" titleIcon="@Embed(source='resources/panel_icon.png')">
                <mx:DataGrid id="grid2" width="100%" height="100%" />
          </mx:Panel>
          <mx:Panel width="100%" height="100%" layout="absolute" id="panel3" label="Panel 3" title="Panel 3" titleIcon="@Embed(source='resources/panel_icon.png')">
                <mx:DataGrid id="grid3" width="100%" height="100%"/>
          </mx:Panel>
    </mx:ViewStack>

  • Problem with Datagrid itemrenderer with a Datagrid

    Hi all,
    I have this kind of a structure. I try to use a datagrid item renderer in a data grid column. However when I try to move rows inside the same datagrid I experience a problem. When my datagrid loads first it seems correct, but when I drag and drop a row in the same datagrid inner datagrids start to be drew in wrong rows. I checked the DB but there are no mistakes in DB records. Problem is with rendering. I suppose inner datagrids trying to draw to early or datagrid component is trying to reuse the itemrenderer. I could not find any solutions for that. Any help will be greatly appreciated..
    <mx:DataGridColumn width="130" editable="false"
              headerText="{resourceManager.getString('resources', 'acl.content')}">
              <mx:itemRenderer>
                   <mx:Component>
                        <ACLInnerDataGrid rowCount="3"     dragEnabled="true"     dropEnabled="false"
                        x="0" y="0"     editable="true" dragInitiatorId="catGrid"
                        filterGroupName="content" remoteDestination="zend"
                        remoteSource="ACLFilterParamService" showHeaders="false"
                        creationComplete="this.init();">
                             <columns>
                                  <mx:DataGridColumn dataField="id" editable="false" visible="false"/>
                                  <mx:DataGridColumn dataField="ruleId" editable="false" visible="false"/>
                                  <mx:DataGridColumn dataField="filterKey" editable="false" visible="false"/>
                                  <mx:DataGridColumn dataField="param" editable="false" visible="false"/>
                                  <mx:DataGridColumn dataField="name" editable="true"/>
                             </columns>     
                        </ACLInnerDataGrid>
                   </mx:Component>
              </mx:itemRenderer>
    </mx:DataGridColumn>
    Thanks in advance.

    I have attached the item renderer component source code.

  • Columnar alignment problem with DataGrid

    Hi All.
    I've got the following DataGrid:
    http://www.joshbeall.com/personal/flex/grid1.png
    If you filter out some of the results with zeros in the
    referred/applied columns, this is what you get:
    http://www.joshbeall.com/personal/flex/grid2.png
    See how the column heads aren't aligned with the columns?
    Interestingly enough, I don't always get this behavior, but it
    happens often. If I click a column head (to change the sort order),
    the alignment is corrected.
    I've attached the complete MXML for this application.
    BTW, another problem I had (and have given up trying to hunt
    down is), why do I need to declare my WebService as
    <mx:WebService>, instead of just doing it entirely in code?
    You can see in my MXML that I have commented out a few lines of AS
    initializing the WebService instance. Originally, I was declaring
    and using my WebService entirely in code. However, the databinding
    wasn't working -- the grid never populated. When I changed it to be
    declared as an <mx:WebService> tag, everything started
    working.
    -Josh

    Josh,
    Which version of the Flex 3 SDK are you using? There were a
    few DataGrid issues similar to this which have been fixed since the
    public Labs beta 1 drop. If you download the latest nightly SDK
    build (
    http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html)
    and install that into Flex Builder are you still seeing the
    DataGrid issue?
    Peter

  • AT300-100 - Connection problems with bluetooth mouse

    I am having problems connecting a bluetooth mouse to my toshiba AT300-100 tablet.
    The tablet and the mouse are able to successfully pair with each other. The tablet asks for the password, I enter 0000 and the two devices successfully pair up with each other.
    I then ensure that the mouse is selected as an input device (click on the mouse settings icon in the Bluetooth screen). I receive no errors at any point. However, there is no mouse pointer on the screen, the mouse buttons have no effect, and the scroll wheel has no effect.
    I have Googled and searched this forum, I can not find a reference to this problem elsewhere. Please advise. It appears to be an O/S bug as far as I can tell.
    Looking on youtube I see the Asus tablet works fine with a mouse and I am following the exact same procedure. I have used the mouse on my Toshiba tecra with no problems at all, so I know the mouse is working just fine.
    Has anyone else had this problem and is there a solution?
    Thank you.
    Mark

    Hi
    Did you solve this issue?
    Are you abele to use the BT mouse connected to AT300?
    In the description of AT300 its mentioned that you can use Virtual Mouse connected via BlueTooth or USB port.
    Check the settings in Language & Input Android area.
    There should be a point called Keyboard & Input Mouse
    If you have more than one installed input device, tap Configure input methods to open the screen where you can configure each input method.

  • Vertical axis scaling problem with XYZ bar/line chart

    Post Author: satwar
    CA Forum: WebIntelligence Reporting
    Is there a trick to making the scaling on the
    Z-axis equal to the Y-axis. I don't want to specify the scaling on
    either axis because I am generating report with filtered "dimensons" in
    order to generate all measure charts for a given set of filters. The
    measures have various value ranges so by not specifying chart scales,
    the Y-axis is auto ranged, which is good, but so is the Z-axis, which
    is bad. I want both Y & Z axis to range together so I get a good
    visual comparison of the two measures being plotted.

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    satwar,
    There is no "trick", we're just victims of the limitation that WebI has in portraying XYZ type charts to our better liking.  I submitted a request to Business Objects Tech Support in Oct 2006 and became the proud holder of two ADAPTs:
    ADAPT00676587 u2013 for the scaling issueADAPT00676609 u2013 for the stacked bar chart, line graph issue
    When fully implemented, the scaling for Y and Z should be able to correspond to each other.  For instance, max value of Y and max value of Z will set on both scales the same max value.  I don't discourage you from submitting a trouble-ticket, perhaps if they get more noise on this situation they'll resolve my (our) ADPAT sooner, but just hoping....

  • Scaling problems with DAQ Assist

    I'm a new user and am trying to do some simple scaling of my voltage inputs using the DAQ Assist. For example: one channel inputs around 8V on a 0 to 10V input selection. I am trying to scale it (linear) to show me around 28V by using the y=mx+b formula. My m value is 3.2 and b is 0. What the DAQ assist reads is around 16V instead of 25V (3.2 * 8). I custom make several scales, basically multiplying the input by 2, 3, 4, & 5, but none of them outputs what I would expect according to the formula and even the 5x causes the displayed value to decrease. If I go to "no scale" I read 8V, which is what is actually coming into the 6255 card. Any thoughts?
    Solved!
    Go to Solution.

    Hello DB66,
    Keep in mind that the Signal Input Range should be set post scale. What do you have defined as your signal input range, you're readings may be scaling themselves to the signal input range. With a coefficient value of 3.2, your range should be Max=32 Min=-32, since your device likely has a +/-10V range.
    Hope that helps.
    Regards,
    Glenn

  • Problem with datagrid dataprovider

    I'm wondering why is it my search result is null after I press search button. After I press search, the datagrid is blank. But I ever test my service and it's working.
    Anyone has any idea how to solve it? So sorry I'm totally new to FLEX... >.<
    Below is my code...
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           xmlns:productbasicservice="services.productbasicservice.*"
                           width="1024" height="768">
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.controls.Alert;
                import mx.controls.TextInput;
                import mx.events.DataGridEvent;
                import mx.events.FlexEvent;
                import mx.rpc.AsyncToken;
                import valueObjects.Product_basic;
                protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                    getProduct_basic_pagedResult.token = productbasicService.getProduct_basic_paged();
                protected function saveClick(event:MouseEvent):void
                    productbasicService.commit();
                protected function revertData(event:MouseEvent):void
                    productbasicService.revertChanges();
                protected function searchData(event:MouseEvent):void
                    var searchStr:String = searchbox.toString();
                    searchProduct_basicResult.token = productbasicService.searchProduct_basic(searchStr);
                    dataGrid.dataProvider = searchProduct_basicResult.lastResult;
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:CallResponder id="getAllProduct_basicResult"/>
            <productbasicservice:ProductbasicService id="productbasicService"
                                                     fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                                                     showBusyCursor="true"/>
            <s:CallResponder id="getProduct_basic_pagedResult"/>
            <s:CallResponder id="searchProduct_basicResult"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <mx:DataGrid id="dataGrid" x="11" y="61" width="1003" height="557"
                     creationComplete="dataGrid_creationCompleteHandler(event)"
                     dataProvider="{getProduct_basic_pagedResult.lastResult as ArrayCollection}" editable="true">
            <mx:columns>
                <mx:DataGridColumn width="200" dataField="id" editable="false" headerText="ID"/>
                <mx:DataGridColumn dataField="name" headerText="name"/>
                <mx:DataGridColumn width="200" dataField="price" headerText="Price"/>
                <mx:DataGridColumn dataField="description" headerText="description"/>
            </mx:columns>
        </mx:DataGrid>
        <s:Button x="849" y="22" label="Save" click="saveClick(event)"/>
        <s:Button x="944" y="22" label="Revert" click="revertData(event)"/>
        <s:TextInput x="14" y="22" width="367" id="searchbox"/>
        <s:Button id="button" x="389" y="22" label="Search" click="searchData(event)"/>
    </s:WindowedApplication>
    I have added my own data service operation in the php file called searchProduct_basic(searchStr). Basically this function return the object of the search result.

    It's the same for lastResult as ArrayCollection.
                protected function searchData(event:MouseEvent):void
                    var searchStr:String = searchbox.toString();
                    searchProduct_basicResult.token = productbasicService.searchProduct_basic(searchStr);
                    dataGrid.dataProvider = searchProduct_basicResult.lastResult;
    For you information, the searchProduct_basic(searchStr) would return Product_basic object. >.<

Maybe you are looking for