Controlling the DataGrid

If I provide my DataGrid with data from an XML file by using
an XMLConnector and a DataSet the lines just below works fine:
dg_search.vScrollPolicy = "off";
dg_search.showHeaders = false
but these lines below have no effect on my DataGrid when they
are pleased in the first frame of my timeline.
dg_search.getColumnAt(0).width = 100;
dg_search.getColumnAt(1).textAlign = "right";
How ever, if I place these two command lines within the click
event of a button it works OK (by referring to the grid using
this._parrent.dg_search)
Any Ideas of how it is like this.
If not a work around would be to raise the click event. Is it
possible to do that by code? (I know it is not nice, but)
TIRislaa

yes, setStyles and cellRenderer on livedocs search would be
your best friend......also if you like adventures.......editing the
Halo.fla theme might yield further custom effects.......

Similar Messages

  • Loading xml data into the datagrid

    Hi all,
    I'm trying to learn Flex. I have a small doubt in loading the datagrid from the xml response (from php script)
    mxml code:
    <mx:DataGrid id="dataGrid" x="69" y="250">
    <mx:columns>
    <mx:DataGridColumn headerText="Name" dataField="name"/>
    <mx:DataGridColumn headerText="Age" dataField="age"/>
    <mx:DataGridColumn headerText="Location" dataField="location"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:HTTPService resultFormat="e4x" result="getDataCallback(event)" id="getDataHttp" url="http://localhost/test/getData.php" method="POST"></mx:HTTPService>
    <mx:Button click="getDataHttp.send();" label="Load Data" x="379" y="268"></mx:Button>
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    import mx.controls.Alert;
    [Bindable] public var mydata:XMLList = new XMLList();
    function getDataCallback(event:ResultEvent):void{
    trace(event.result.data.info);
    mydata = event.result.data.info;
    dataGrid.dataProvider = mydata;
    ]]>
    </mx:Script>
    PHP Script
    <?php
    $xml = "<?xml version=\"1.0\" ?><data>";
    $xml .= "<info><name>name1</name><age>26</age><location>location1</location></info>";
    $xml .= "<info><name>name2</name><age>27</age><location>location2</location></info>";
    $xml .= "</data>";
    header("content-type:text/xml");
    echo $xml;
    But the data is not being loaded into the datagrid. Please anyone help me out ..
    Thanks in advance
    -Pavan

    ... and I doubt you are using the word "doubt" in its correct sense.

  • How to display HyperLink on the DataGrid Component  column  data.

    Hi ,
    I am able to display customer data on to the DataGrid with the help of a ArrayCollection,
    Similar as shown :
    <mx:columns>
    <mx:DataGridColumn dataField="customerid"  headerText="Employee ID"
                       itemRenderer=""/> 
          </mx:columns>
    Please tell me what should be the value inside the itemRenderer to make the customerid display as an HyperLink ??
    I am struck up mx.controls.----?? value on to the itemRenderer 
    Please suggest .
    Thanks in advance .

    And Following is answer for http://forums.adobe.com/thread/630928?tstart=0
    <mx:DataGridColumn headerText="Employee ID"
    editorDataField="text" dataField="customerid"
    itemRenderer="mx.controls.TextInput" editable="true"/>
    Just replace TextInput--->YPaticular  controll(LinkButton)
    please help to answer this
    http://forums.adobe.com/thread/630962
    Happy codding....

  • [svn:fx-trunk] 8507: Making measureHeightOfItemsUptoMaxHeight consistent with the way we create rows in the datagrid .

    Revision: 8507
    Author:   [email protected]
    Date:     2009-07-10 10:13:11 -0700 (Fri, 10 Jul 2009)
    Log Message:
    Making measureHeightOfItemsUptoMaxHeight consistent with the way we create rows in the datagrid. MakeRow ensures reported row height is round to the nearest integer, measureHeightOfItemsUptoMaxHeight is now consistent.  Fixes a long standing PrintDataGrid issue.
    Bugs: SDK-20237.
    QE Notes: None
    Doc Notes: None
    Reviewer: Glenn/Alex
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20237
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as

    Well, you could do the following:
    1) Create a stored procedure that assembles the data into a rowset with rows and fields like the format you want.
    2) Create stored procedures that handle insert, update, and delete.
    3) Create an entity object definition with all transient attributes. Make the attributes match the elements of one row.
    4) Override doDML() in the entity object class to call your procedures (the doc explains how to do this). You might also need to do a bit of research and figure out if you need to override some other method so you can report rows with transient attribute changes only as needing posting. (getPostState(), maybe?)
    5) Create a view object definition with entity-derived attributes based on your EO attributes.
    6) Override the appropriate methods to call your data assembly procedure rather than execute a query (this is also in the doc).
    Still kind of kludgy, but it keeps your business components pretty clean, especially if you use framework classes to do most of the work for you. (I have a partial example of how to do that here.) Of course, it keeps your business components clean by moving the real work to the DB, but some people find that more maintainable that a kazillion business components.
    Hope this helps,
    Avrom

  • About the row number of the datagrid[Flex 2.0 beta3]

    I want to add a column to the datagrid,which will indicates
    the row number.Who can tell me how to do it?
    And how to keep the number's sequence unchanged when the
    header of one of other columns is cliked to sort the
    data?

    If I understand this correctly. Then would it not make more
    sense to say in
    the LiveDocs --
    makeObjectsBindable - After the remote call (RPC, HTTP, SOAP,
    etc) returns
    its value. Flex tries to automatically convert the result
    into an
    ArrayCollection (if it looks like an array, even if it was
    XML) [Or
    others???] format. This automatic conversion controlled by
    the
    makeObjectBindable property. If false, Flex does not attempt
    the conversion
    and the result will be in (xml?) format.
    "peterent" <[email protected]> wrote in
    message
    news:eali1i$1q9$[email protected]..
    > Results that come back which look like Arrays will be
    turned into
    > ArrayCollections automatically. Since most people
    immediate turn an Array
    > into
    > an ArrayCollection, we went ahead and did it for you.
    Try getting rid of
    > your
    > new ArrayCollection in the result handler.
    >

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • Remotely control the ITunes on Windows 7 64 bit PC with the new IPad

    With the latest version of ITunes for both Win7 and the new IPad, I'm only able to use the new IPad to remotely control the ITunes on Windows 7 64 bit PC through wired connection  ( ethernet cable ) to the wireless router. As soon as I connect my PC through wireless connection, the new IPad can not find my libraries.
    Is this a known issue or am I missing some settings?
    Thanks,

    Are you using the 64 bit installer?
    See also  Recovering your iTunes library from your iPod or iOS device.
    tt2

  • The sound of my iphone has dissapeared when I play games and when i listen to muisic but when I put the headphones the sound come back and I can control the sound,what should I do??

    I was on a boat ride when some water fell on it but it was just a little bit then when i tried to control the sound and volume while playing and listening to music it didn't showed anything and just with headphones it appeared again and i could listen and I could control it again but when i take the headphones out it goes back to the same thing.What should I do??

    try toggling the Ducking menuItem

  • Can not control the color in JOGL

    I am a beginner to use JOGL.
    I find that I can not control the color, both background and foreground. The background is always Black, and foreground is always Red.
    I use canvas.setBackground(Color),
    gl.glColor3*(), trying to change the color. But it does not work.
    What is the problem?
    Thanks.
    Toby

    A big help for learning JOGL is reading the Red Book from OpenGL, which can be downloaded in pdf. Since JOGL is almost a direct wrapper, the function calls are identical.
    To set the background color, you need to add a GLEventListener to the GLCanvas that you're using. To set the background color, in your init() method for GLEventListener do:
    public void init(GLAutoDrawable glad) {
    GL gl=glad.getGL();
    gl.glClearColor(r,g,b);
    or something similar, I'm not on my normal computer so this was all from memory. Check the JOGL API for the exact method name for glClearColor. To change the foreground color, there are a bunch of various methods that are all similar to glColor3f(float r,float g,float b).
    Calling this on the GL object in the display() method will set the foreground color and everything drawn that isn't using lighting will use this color.

  • I want to make a slideshow to view on my television with image's duration ranging from seconds to an hour or more and I want to use my iPhone or iPad mini to control the television through my Apple tv.  I've been unable to locate an app that will do this.

    I want to make a slideshow to view on my television with image's duration ranging from seconds to an hour or more and I want to use my iPhone or iPad mini to control the television through my Apple tv.
    I've been unable to locate an app that will do this.  The Photos app that comes with the phone or iPad has extremely limited duration controls.  PhotoStream seems to load everything from my phone or iPad not allowing me to just load up a set group of images.
    iPhoto for iPad is getting some terrible recent reviews.  I tried a couple other free apps but they don't use Airplay.
    I can do something like this with iPhoto and my MB Air, but it's kind of ugly to have the computer open in order to connect by Airplay to my Apple TV.  I've thought the iPad or iPhone would be a lower profile controller.
    Am I out of luck?

    Thanks for your help.  Since I'm uninterested in loading all my photos (the only option) into photostream, I won't be able to use the settings in ATV.  I guess I'm just stuck with using iPhoto on my MB Air.  Thanks again.
    paul

  • Can't figure out how to set my midi controler to control the sampler!

    I have a Korg Kontrol49 and I want to be able to control the sampler knobs and faders with the ones on my Korg. I have it connected threw USB. It works for the keys but I can not figure out how to program the rest of it. Any help would be great. I tried reading everything I could to get it to work but I cant. Please help!
    Thanks
    Mac Pro   Mac OS X (10.4.8)  

    Press Command-L. Touch the onscreen control. Twiddle your MIDI knob. Assignment learnt.
    Then go read the manual on Controller Assignments...

  • Control the opening and closing period

    hi ,
    Control the opening and closing period
    How I can control open and close peroid at the level of (ledger or legal entity or operating unit)
    thanks

    can you clarify it, what does it mean 'control' the opening period

  • Allow the user to control the width of the edit forum post input box

    I would like to control the width of of the edit-forum post input box.  This could be:
    automatically adjust the width of the box so that the box doesn't run off the right edge of the window.
    have a user global preference to set the preferred width
    at least, allow the user to change the width via the change size icon.  The three horizontal bars at the lower left of the input box. You can adjust the vertical dimension, but not the horizontal. TenFourFox 4.0.1. This is probably being blocked for some obscure reason.
    Here is an example of an over extended right margin:
    Curiously enough, the "software" let's me adjust the width & height of the add reason to edit text, but not adjust the width of the more important edit text box.
    Robert

    Testing
    Standard Reply box can be height adjusted but not width.
    Same with Advanced Editor
    No Adjustment at all in HTL Editor
    Edit.
    The Edit uses the Advanced Editor
    Only Height Adjustment again.
    I do seem to remember someone posting about the width and saying they could drag it over the edge of the right hand edge (Into the grey surround)
    This may have been a post in the lounge.
    It didn't actually try it at the time but have played with it since and have not seen it.
    Maybe it is something they "Fixed" in both senses of the word.
    Second edit.
    I can't alter the box that currently reads "Message Edited by:- ..."
    I also can't get this box to accept New lines  (they appear in the box but don't post that way)
    Corrected Spelling
    9:51 PM      Wednesday; May 11, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)
    Message was edited by: Ralph Johns (UK)
    and new line with a line space as well

  • Control the creation of excise invoice without chapter id

    Hi All
    If Chapter ID is not maintained for a material in J1ID, can we control the creation of the sales excise invoice (J1IIN) for that particular material.
    Thanks in advance
    regards
    Ram A

    Hi Rajesh
    Thanks for your reply.
    Eventhough the chapter ID is not maintained in the Material Master or in J1ID, the system will allow the creation of the sales excise invoice (J1IIN) without any excise duties in case of TAXINJ and with excise duties in case of TAXINN.
    My requirement is that the system should restrict the creation of sales excise invoice for the materials without chapter ID.(Any User exits ???)
    regards
    Ram A

  • Can 2 iPhones control the same iTunes Library with Remote?

    Hi,
    Does anyone know if you can authorize 2 iPhones to control the same iTunes library using the iPhone Remote app? Or can only one iPhone be authorized at any one time?
    Thanks!
    - John

    Hey John,
    Yes, you can have multiple iPhones remote controlling iTunes.
    Jason

Maybe you are looking for

  • Missing mouse pointer?

    sometimes I will notice, that the mouse arrow will just be nowhere to be found. I will move the mousepad around rapidly, with no reaction. if I put it into sleep and then turn it back on, it will be there, but I am just confused. Thanks

  • Xsd extension question

    Hello, I have a question about the extension of complex Types by xsd. Can I use polymorphism with the extension of complex Types. By example, I define a xml schema <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2000/1

  • Do i need to run maintenance scripts

    does OS 10.6 still run daily  weekly and monthly maintenance scripts

  • Macbook doesn't sleep!!! OS X 10.9.4

    My Macbook Air won't sleep! I tried everything on this link, but it dosen't work!: MacBook doesn't sleep when closing lid with external monitor attached with Lion Here is the output of my pmset -g Active Profiles: Battery Power 1* AC Power 2 Currentl

  • ITunes error 0x80090318?

    How do I fix the iTunes error 0x80090318? I keep trying to access the iTunes store on my windows computer but an error message with code 0x80090318 always comes up.