Exactly how are you changing the data? Perhaps I'm blind. I don't see the grid as editable, nor do I see any function changing the data.
 
Shan


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of polestar11
Sent: Monday, July 03, 2006 9:23 AM
To: flexcoders@yahoogroups.com
Subject: [Junk E-Mail - LOW] [flexcoders] DataChange event in DataGrid

Hi there

I am trying to capture the dataChange event in a datagrid, but my
associated method is not being called when I change data in the grid.

Here is the code:

<mx:Script>
<![CDATA[
public function updateData() {
trace("*** UPDATE DATA")
tempArray = [{col1:"Jack", col2:"Col2 A"}, {col1:"Col2 A",
col2:"Col2 B"},{col1:"Col3 A", col2:"Col3 B"}];
}
public function doDataChange() {
trace("*** DATA CHANGEED")
}
[Bindable]
public var tempArray:Array = [{col1:"Col1 A", col2:"Col2 A"},
{col1:"Col2 A", col2:"Col2 B"},{col1:"Col3 A", col2:"Col3 B"}]
]]>
</mx:Script>
<mx:Button click="updateData()" x="656" y="426" />
<mx:DataGrid id="dg" dataChange="doDataChange()"
dataProvider="{tempArray}" x="656" y="447">
<mx:columns>
<mx:DataGridColumn headerText="Col1" dataField="col1" />
<mx:DataGridColumn headerText="Col2" dataField="col2" />
</mx:columns>
</mx:DataGrid>

Any help much appreciated
Cheers
Tracy


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.8/380 - Release Date: 6/30/2006

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.8/380 - Release Date: 6/30/2006

Reply via email to