Make sure the dataGrid has a reasonable width/height and a dataProvider.
I confirm that the width/height are appropriate and the dataprovider property is set correctly or else the data would not have been visible on the subsequent clicks (from second click onwards).
Everything was fine earlier. I am facing this issue fron 3-4 days. I have also verified that the RemoteObject's result handler get the data and the count is greater than 1.
What do you see? Do you see the DG header? Do you see other controls on
that viewstack page?
Are you using custom renderers? If so, what happens if you use the default
I do see datagrid headers, and rest of the contents. The only thing not visible is the data. And above all, its not visible on first click. I can see it on the subsequent clicks. This is very strange.
I am not using any custom renderer. Its a simple hashmap returned from Java Class.
Check the dataprovider length. Then put a breakpoint on
ListBase.as:mouseOverHandler and mouse over the grid and inspect the
listItems array of arrays. The elements should be the renderers and you can
see if they exist and what they think they are displaying.
I figured out the issue using debugger version of flash player. The components in the ViewStack were not getting initialized. I set the creationPolicy = "all" into the <aplication> tag and now things are working fine.
Thanks for all your suggestions.