[flexcoders] Datagrid Goofy Problem cannot select rows

2009-04-10 Thread timgerr
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



RE: [flexcoders] Datagrid Goofy Problem cannot select rows

2009-04-10 Thread Alex Harui
That sounds like the uid of each item is the same.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of timgerr
Sent: Friday, April 10, 2009 12:06 PM
To: flexcoders@yahoogroups.com
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



RE: [flexcoders] Datagrid Goofy Problem cannot select rows

2009-04-10 Thread Tracy Spratt
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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of timgerr
Sent: Friday, April 10, 2009 3:06 PM
To: flexcoders@yahoogroups.com
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