Probably a timing issue.  Binding is difficult to debug.  Make sure your
dataSource var is bindable. Initialize might be too early. Test the content
in a handler function and also check it in a creationComplete handler.  I
rarely use initialize for any data oriented work.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Nick Middleweek
Sent: Thursday, February 25, 2010 9:15 AM
To: [email protected]
Subject: Re: [flexcoders] advanced datagrid in popped up titlewindow issue

 

  

It's a bit hard without seeing the full code: http://pastebin.
<http://pastebin.com/> com/

But... It might be worth changing your attributesData.initialize to a
function call and perform the layerGroup.refresh() inside that function. But
just before that call drop in a break point and debug what the
grouping.source is...

Just an idea.




On 25 February 2010 13:55, Paul Hastings <paul.hastings@
<mailto:[email protected]> gmail.com> wrote:

  

i have a flex (3.5 SDK) advanced datagird that works fine in the app's
main layout but when moved into a popup titlewindow it won't fill with
data. a normal datagrid in the same titlewindow component using the
same datasource works fine.

component creation & data passed in:

idResultWindow=IdentifyResultWindow(PopUpManager.createPopUp(this,IdentifyRe
sultWindow,false));
idResultWindow.dataSource=featureAttributes; 

datagrid in question (in idResultWindow):

<mx:AdvancedDataGrid x="10" y="10"
id="attributesData"
initialize="layerGroup.refresh();"
width="100%" height="100%">
<mx:dataProvider>
<mx:GroupingCollection id="layerGroup" source="{dataSource}">
<mx:grouping>
<mx:Grouping>
<mx:GroupingField name="layer"/>
</mx:Grouping>
</mx:grouping>
</mx:GroupingCollection>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn headerText="" dataField="attribute"/>
<mx:AdvancedDataGridColumn headerText="" dataField="value"/>
</mx:columns>
</mx:AdvancedDataGrid>

gone blind looking thru these few lines of code & now kind of stumped,
anyone have any ideas?

thanks.

 



Reply via email to