When you add the topic to the ArrayCollection, are you building and adding
an object that is identical to the dataProvider items?

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of timgerr
Sent: Friday, April 10, 2009 3:06 PM
To: [email protected]
Subject: [flexcoders] Datagrid Goofy Problem cannot select rows

 






Hello all,
I am creating a message board forum and I am using the datagrid to show
message topics. I add a new topic, via flex text input box, it gets sent to
a PHP Weborb back end and the datagrid will then be updated. So lets say I
do not have any topics, I will add the first one, I can then take my mouse
and select that row. When my mouse hovers over the item, the row is
highlighted (this is done by default, a feature of the datagrid). If I
create another topic, I am unable to highlight any other row except for the
latest one that was updated. I am not sure what to look for here. Here is my
mxml datagrid :

<mx:DataGrid x="0" y="0" width="100%" height="100%" id="dataGridReadTopics"
dataProvider="{this._acTopic}"
click="{this.dataGridReadTopicsClicked(event);}">
<mx:columns>
<mx:DataGridColumn headerText="Topic" dataField="topic" editable="false"/>
<mx:DataGridColumn headerText="id" dataField="id" visible="false"/> 
<!-- <mx:DataGridColumn headerText="Column 3" dataField="col3"/> -->
</mx:columns>
</mx:DataGrid>

Any Ideas???

thanks,
timgerr



Reply via email to