Matt,

> Clearly it seems like a bug so I'd file it at 
> http://www.macromedia.com/go/wish

Cheers, will do.

> But there should be a simpler workaround I'd hope.
> What about calling invalidate() on the DataGrid?

I tried that, but nothing doing unfortunately :o\

Tim.

--
-------------------------------------------------------
Badpen Tech - CF and web-tech: http://tech.badpen.com/
-------------------------------------------------------
    RAWNET LTD - independent digital media agency
    "We are big, we are funny and we are clever!"
     New site launched at http://www.rawnet.com/
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
------------------------------------------------------- 

 


________________________________

        From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
        Sent: 09 May 2005 04:07
        To: [email protected]
        Subject: RE: [flexcoders] Dynamically poplulating an editable
DataGrid
        
        

        Clearly it seems like a bug so I'd file it at
http://www.macromedia.com/go/wish.  But there should be a simpler
workaround I'd hope.  What about calling invalidate() on the DataGrid?

         

        ________________________________

                From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Blair
        Sent: Sunday, May 08, 2005 6:28 AM
        To: [email protected]
        Subject: RE: [flexcoders] Dynamically poplulating an editable
DataGrid

         

        Matt/Manish,
        
        Matt wrote:
        > When you add a new object to the dataProvider any chance you
        > can add it with empty fields for the columns that do exist?
        > I'd imagine that it not having any values whatsoever could
        > cause something like this.
        
        Manish wrote:
        > I don't know why this might be happening, but I found that
        > setting the initial value to " " (single space) instead of ""
        > (blank string) fixes the issue.  Does that work for you?
        
        Even when setting the value of the cells in each new row to
something
        other than "" I still couldn't edit the cells without first
creating a
        new column.  Additionally, the value of the cells wasn't
displayed until
        after the new row had been added.
        
        In the end I had to do two things to get it to work, the first
of which
        is a temendous hack that I really don't like.  Because I
couldn't edit
        cell information until after a new columnn had been created,
when adding
        a new row I forced creation and then immediate deletion of a new
column:
        
        // new "row" added to the patta provider in the lines above
        myDataGrid.addColumn(new DataGridColumn("temp"));
        myDataGrid.removeColumnAt(myDataGrid.columnCount-1);
        
        Additionally, as Manish suggested, I had to give the initial
value of
        each cell a non-empty string value (a single space) or even
after
        editing the field, the label wouldn't be shown until after a new
row is
        created.
        
        As I said, hacky and not nice, but at least I have it working
they way I
        expected it should!  So the question is -- what's going on here?
Bug?
        
        Tim.
        
        --
        -------------------------------------------------------
        Badpen Tech - CF and web-tech: http://tech.badpen.com/
        -------------------------------------------------------
            RAWNET LTD - independent digital media agency
            "We are big, we are funny and we are clever!"
             New site launched at http://www.rawnet.com/
        -------------------------------------------------------
        This message may contain information which is legally
        privileged and/or confidential.  If you are not the
        intended recipient, you are hereby notified that any
        unauthorised disclosure, copying, distribution or use
        of this information is strictly prohibited. Such
        notification notwithstanding, any comments, opinions,
        information or conclusions expressed in this message
        are those of the originator, not of rawnet limited,
        unless otherwise explicitly and independently indicated
        by an authorised representative of rawnet limited.
        -------------------------------------------------------
        
        


        ________________________________

        Yahoo! Groups Links
        

        *       To visit your group on the web, go to:
                http://groups.yahoo.com/group/flexcoders/
                  
        *       To unsubscribe from this group, send an email to:
                [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
                  
        *       Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service <http://docs.yahoo.com/info/terms/> . 

        
        
        
______________________________________________________________________
        This email has been scanned by the MessageLabs Email Security
System.
        For more information please visit
http://www.messagelabs.com/email 
        
______________________________________________________________________
        



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to