Alignment columnar with DataGrid problem

Hi all.

I have the following data grid:

http://www.joshbeall.com/personal/Flex/Grid1.PNG

If you filter some of the results with zeros in columns cited/applied, that's what you get:

http://www.joshbeall.com/personal/Flex/Grid2.PNG

See how the column heads are not aligned with the columns? Oddly enough, I still don't understand this behavior, but it often happens. If I click a column head (to change the sort order), the alignment is corrected.

I have attached the full MXML for this application.

BTW, another problem, I had (and have given up trying to hunt down is), why should I declare my WebService as < mx:WebService >, instead of simply do entirely in code? You can see in my MXML that I put in the comment a few lines of AS the initialization of the instance of WebService. I was originally, declaring and using my WebService entirely in code. However, data binding didn't work - the grid never filled. When I changed it to be declared as a < mx:WebService > tag, everything started working.

-Josh

Peter, I caught SDK build 180310/Wed Aug 22 2007 and that fixed the display problem.

Rvollmar, thanks for the tip on [Bindable]. Add this attribute corrected the problem. You call the 'attributes' in ActionScript? 'attribute' is the name of .NET.

Tags: Flex

Similar Questions

  • Align objects with precision

    One of my biggest problems in mxml involves the alignment of the text. In the code below, I would like to line up the bottom of the text fields, so the two fields are sitting at the same vertical height.

    Please tell me how to do this.

    Thank you.

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML " "layout = "absolute" creationComplete ="application1_creationCompleteHandler (event)" >
    < mx:Script >
    <! [CDATA]
    Import mx.events.FlexEvent;
    protected function application1_creationCompleteHandler(event:FlexEvent):void {}
    title.setStyle ("fontSize", 30)
    subtitle.setStyle ("fontSize", 14)
    }

    []] >
    < / mx:Script >
    < mx:HBox verticalAlign = "bottom" >
    < mx:Text id = "title" text = "Title" / >
    < mx:Text id = "subtitle" text = "subtitle" / >
    < / mx:HBox >
    < / mx:Application >

    I'm not sure that I am an expert in typography, but, having created nearly 1.5 (or same 1.6) fonts, I learned that each of them have their own settings (like the ascenders, descenders etc.)... Ripheriques align letters with zero police line. But in Flex, we deal with text fields, which are created for letters with their tops and tails (which have different lengths in different font sizes)...

    Yet less skilled in Flex, I'm not sure that there is an automatic proper solution...

    But you can align it manually by adding some padding (at least it works...)

    <>

    "xmlns:MX ="http://www.adobe.com/2006/mxml"

    layout ='

    absolute minWidth"="400 ".

    creationComplete = "application1_creationCompleteHandler (event)" "

    >

    Import mx.events.FlexEvent;

    protected function application1_creationCompleteHandler(event:FlexEvent):void {}

    title.setStyle ("fontSize", 30)

    subtitle.setStyle ("fontSize", 14)

    }

    ]]>

    P.S. I don't know why, but complete Manager for creating application wouldn't work, so I had to add font size definitions...

  • datagrid problem

    Hello, I'm luciano, I come from milan, I am beginner programmer, I have e problem with datagrid I have because I am not not to be able to solve a simple problem infact I porpose this issue in this forum

    hoping to help anyone.

    I realizate a small procedure who receive data from a SQL database and I am happy because this little program work correctly but have a problem, because this research only once when I clik button on the first time and I don't know how I can change this program to search for data constantly.

    I think my problem is to change the sendVariable method because 'urlLoader.addEventListener (Event.COMPLETE, callServerHandler)' send data

    only first time but how can I change it?

    It's my program and I'm happy if there at - it someone help me thank you

    package classes.mysql {}

    import flash.text.TextField;
    Import fl.controls.DataGrid;
    Import fl.controls.dataGridClasses.DataGridColumn;
    Import fl.data.DataProvider;
    Import fl.events.DataGridEvent;

    import flash.display.MovieClip;
    to import flash.display.SimpleButton;
    import flash.net.URLRequest;
    import flash.net.URLRequestMethod;
    import flash.net.URLLoader;
    import flash.net.URLLoaderDataFormat;
    to import flash.net.URLVariables;
    import flash.events. *;

    SerializableAttribute public class LogonUtenti extends MovieClip {}

    var sendButton:SimpleButton = new SimpleButton();
    var urlRequest:URLRequest;
    var urlLoader:URLLoader;
    var phpFile:String = " " http://localhost/EsercitazioniFlashandPHP/SendResponseVarMySqlDataGrid/PHP/getUtLogon.php ";
    var dataObj:URLVariables;
    var col: Boolean = false;
    var dati:DataProvider = new DataProvider();
    var DatGrid:DataGrid = new DataGrid();

    public void LogonUtenti (): void {}
    this.addChild (sendButton);
    sendButton.y = 35;
    sendButton.x = 680;
    sendButton.addEventListener (MouseEvent.CLICK, sendVariable);

    }

    private void sendVariable(evt:MouseEvent):void
    {
    var varSend:URLVariables = new URLVariables (evt.target.data);
    varSend.nome = nome_txt.text;
    varSend.cognome = cognome_txt.text;
    varSend.telefono = telefono_txt.text;

    urlRequest = new URLRequest();
    urlRequest.url = phpFile;
    urlRequest.method = URLRequestMethod.POST;
    urlRequest.data = varSend;

    urlLoader = new URLLoader();
    urlLoader.addEventListener (Event.COMPLETE, callServerHandler);
    urlLoader.dataFormat = pouvez;
    urlLoader.load (urlRequest);
    }
    private void callServerHandler(evt:Event):void {}
    var urll:URLLoader = URLLoader (evt.target);
    urll.dataFormat = pouvez;
    dataObj = new URLVariables (evt.target.data);

    this.addChild (DatGrid);
    if(col == false) {}
    DatGrid.addColumn ("name");
    DatGrid.addColumn ("last name");
    DatGrid.addColumn ("phone");
    DatGrid.addColumn ("professione");
    DatGrid.addColumn ("address");
    DatGrid.addColumn ("email");
    DatGrid.dataProvider = dati;
    DatGrid.setSize (700, 600);
    DatGrid.move (40, 80);
    for (var i: int = 0; i < dataObj.total; i ++) {}
    dati.addItem ({name: dataObj ['name' + i] last name: dataObj ['hit' + i], telefono:dataObj ['telef' + i], professione:dataObj['prof'+i],indirizzo:dataObj['ind'+i],email:dataObj['eml'+i]});})
    Col = true;
    }
    }
    }

    }
    }

    If you knew more about this than me, you wouldn't post a question in this forum.  you would be answering the questions.

  • Verizon said I can be faced with one problem with my browser and don't charge but ATT, gmail and other

    Tried loading Verizon homepage, but it says I can be faced with a problem with my browser. ATT, gmail between other fine load and Verizon was very well for some time now, what should I do? I'm not tech savvy so please keep it simple for me, thank you.

    Try to clear your browser's cache.

    Firefox button or tools > clear recent history... - details and of course Cache hit only is selected, and then select all and click the clear now button.

  • Presario SR1463CL with drivers problems

    Please be tolerant of beginners.

    I purchased a SR1463CL to add to a DELL Dimension - old but never fails. -the HARD drive was crushed. I replaced the HDD Samsung with Western Digital. I have replace the dial-up modem. All this without problems. I installed Windows XP Pro and SP2 update. My system detects "New hardware" drivers VGA Compatible and multimedia controller. I have had no success finding the right drivers and their installation. My monitor works find, but I have no sound.

    Poster 'sounds, video controllers' Device Manager with the problems. Initial device showed sound and audio by default to the Modem. I removed which and at this point no device is indicated.

    Device Manager shows no driver found for new hardware and online search has failed. Windows Update detects any is available. I checked on the resource one manufacturing line have failed in my downloadsfrom RealTek and Nvidia.Dial - up has had major periods and material has been identified as there's no way for the system. Previous owner had made the back-ups-DVD-but they went "purple haze" and could not be read. That's why I installed XP Pro.

    My modem does not work on and additional time. It will connect and funtion but after a few minutes I'll get "Page not found" displayed.

    So, I use my Dell Dimension for internet troubleshooting. Any help is greatly appreciated.

    Respectfully.

    "Submariners do it deeper."

    Thanks for the information. Due to serious conflicts resulting from auto-updates from microsoft, which I had to reformat the HARD drive and have located since the necessary drivers to the www.sis.com for VGA and www.realtek.com for audio AC 97 readers to be precise. Manually review and choose downloads in the future.

    "Greens, all councils prepare to dive."

    Thanks again for your help. It is greatly appreciated.

    Bamabubblehead went to the abyss.

  • My macbook air running hot and the battery drains quickly can help you with this problem?

    My macbook air running hot and the battery drains fast is a 13 ", at the beginning of 2014.  Processor 1.4 GHz intel core 15Can you help with this problem?

    Apps can affect the performance of Mac, battery, temperature and fan activity - Apple Support

  • just installed new update for itunes. When I go to the page stoe it flashes really hurt. anyone with this problem. is there a solution?

    just installed new update of itune. When I go to store the page, it's really bad flicker.  anyone with this problem. is there a solution?

    Widely not reported, no known resolution until Apple release a new version of iTunes that affects it.

  • two drivers of PXI chassis with Configuration problem

    Hello

    I have two PXI chassis. One is PXI 1033 and works perfectly with the NI PXI-5404, 5105, 6509, 1409, installed 8336. The other is 1036 PXI with the PXI-5404 NI, 8366 installed. When I was trying wreath connect, as master 1033, 1036 as slave, I found several problems.

    1. in the Measurement & Automation Explorer, does not have my good guys in 1033. Instead, there is a sign of the Red Cross in bottom right with 6509, 5105, 5404.

    2. I can't find an another 5404 of the 1036. In fact, I can't find 1036 in MAX.

    Update BIOS. My PXI system is already identified under the name 'NOR PXI - 1033 Embedded MXI Express' and Chassis1 is identified as 'NOR PXI 1033'.

    So I made several tests as below:

    1. unscrew the 5404 1036 slave. MAX can configure 2 1036 chassis. Ok. But when I reconnect 5404 in 1036, same result happened as stated above.

    2 uninstall the driver of 5404, so the 5404 in 1033 does not either now. And then reboot again, same result happens again. Cannot detect the 1033 chassis. Other vouchers in 1036 don't work either.

    Please, any suggestion is highly appreciated.

    Sincerely,

    Bin

    Hi Ben,

    This happens sometimes with MXI-Express:

    Error code 12 with MXI-Express

    http://forums.NI.com/T5/PXI/two-PXI-chassis-connection-with-configuration-problem/m-p/1475876#M9033

    In general, you can read this error 12 means on Device Manager:

    Explanation of error codes generated by Device Manager in Windows XP Professional

    http://support.Microsoft.com/kb/310123

    If it was a problem of bandwidth, PCI or PXI side, you could pull a few cards to see if that alleviates the problem, or that the link from Microsoft over the States, you can disable the driver for other cards.

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I have a frozen screen of Active recovery of white desk with a mouse. I think that the computer is frozen upward with a problem of recovery? Right?

    I have a frozen screen of Active recovery of white desk with a mouse.  I think that the computer is frozen upward with a problem of recovery? Right?

    How can I fix?

    Hello
    • What were the changes made before the problem occurred?

    You can try to restart the computer and check if it helps.

    If above does not help, you can read the following steps to disable the active desktop on the computer and check:

    a. to disable Active Desktop.
    b. right click on an area empty office, point to Active Desktop, and then click view as Web Page to clear the check box.
  • I need a list send me Windows based utility of magnification for XP, am a MSN user with vision problems and cannot zoom in easily on what I have.

    I need a list, sent me to my XP Windows-based magnification utilities, am a user of MSN base with vision problems and cannot zoom in with what I have, and the work of the "Magnifier" somewhat well but could use something better.

    Any ideas?

    Hello

    Please refer to the links and check if it helps.

    How to set accessibility features for people who are blind or who have low vision in Windows XP

    http://support.Microsoft.com/kb/308978

     

    Windows XP accessibility tutorials

    http://www.Microsoft.com/enable/training/windowsxp/default.aspx

    Overview of the magnifying glass

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/magnify_about.mspx?mfr=true

    I hope the information is useful!

  • I am also having the same problem with the same updates. I have Windows XP SP3 and it's updates with the problem.

    I am also having the same problem with the same updates. I have Windows XP SP3 and it's updates with the problem.

    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2572073)
    A security update for .NET Framework 2.0 SP2 and 3.5 SP1 on Windows Server 2003 and Windows XP x 86 (KB2518864)
    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2633880)

    They all install properly but switches back to windows update to install. It's some kind of loop.

    Hi billy73,

    In addition, if you still have questions, please take a look at the thread similar here with a solution as possible.

    I hope this helps!

  • New SSD speed with u410 problem

    Hi, I would ask about my problem. Yesterday I had my old ssd Dams in my ideapad u 410 with one

    A - Data 32 GB SP300 first Pro

    Data sheet:

    Read: 280 MB/s.
    Writing: 260 MB/s.
    IOPS / s: read 12 500/writing 46 000 (random maximum write 4 K)

    and runing on Windows 8 profesional x 64. When I run Crystal diskmark my results are lower as the old 24GB ssd card, I am now around 47 MB/sec write, the old ssd played 69 MB/sec.

    Can someone help me with this problem?

    Thank you.

    renamed topic

    Some ssd compress the data and give you a speed of data compress in their specifications, your old ssd drive might not make it.

    Crystal diskmark performance and go towards the senior, the file / test data / select all 0 x 00 (population 0) and rerun the test.

    John.

  • WHEN I OPEN INTERNET EXPLORER THE E-mail INSERT attachment only WILL NOT WORK - BUT OPEN WHEN IT WITH ADD - no one seems to help me with this problem?

    WHEN I OPEN INTERNET EXPLORE THE INSERT ATTACHMENT WILL WORK - BUT WHEN HE OPENS WITH ADD - NO ONE SEEMS TO HELP ME WITH THE PROBLEM OF TIS!

    That means '' BUT WHEN OPEN IT WITH ADD? '' With no Add-ons? Have you tried allowing add-ons one at a time until you find out that one is the cause of the problem?

    "NO ONE SEEMS TO HELP ME WITH THE PROBLEM OF TIS!

    Have you thought to ask in the forum Internet Explorer?

    Internet Explorer forums
    http://answers.Microsoft.com/en-us/IE

  • Fromm Vista Home Premium (with many problems) I wish back to XP PRO. Where can I find the drivers? I think that the original XP disk contains the drivers.

    Vista Home Premium (with many problems), I wish to go back to XP PRO. Where can I find the drivers? I do not think that the original XP disc also contains the drivers!

    Some computers come with a disk drivers or Drivers and Utilities .  If yours does not, look for drivers on the web site of the manufacturer of the computer.

Maybe you are looking for

  • Incorporating images of dvd FCPX

    Hello A friend had some films she had done years ago, scanned by a process that makes DVD. I want to bring them into FCPX, export, and post on YouTube for her. What is my process? BTW, someone said it was easy to do with iMovie. True? If so, looks li

  • Re: Lack of Win7 drivers for my laptop Satellite

    Hello I bought a Satellite with Windows 8, but when I installed Windows 7 so I can't have a Wi - Fi.I went to the Manager of periferics and saw this USB bus controller and SM bus controller network controller are not installed I can't find them in th

  • Toshiba virtual Store account Reset - 33205

    You can reset my acount33205SN: 3A020981DH IT's SORRY CORECT

  • Which one?

    I'm going to buy the iPad 2 Air 64 GB but I'm not sure whether to get the WiFi only or WiFi and cellular.  Other than having the ability to access data when there is no WiFi are there other benefits to get the mobile version? Thank you.

  • How to print them and larger screens in dynamics NAV 2009?

    Got a new monitor with a higher resolution, but do not know to read little more Dynamics NAV.  What can I do except change my resolution (then it gets really grainy).