Skip to main content
Inspiring
June 9, 2009
Answered

Datagrid hScrollPolicy problem with cellRenderer

  • June 9, 2009
  • 1 reply
  • 623 views

Hi all, I'm having a problem which I can't seem to solve. I'm using a cellRenderer to display icons in a dataGrid. All works fine until I type in the command myDg.hScrollPolicy = "auto". Once I issue that command, the icons stop displaying. If I remove that line, all works well once more. Has anyone had this strange behaviour?

This topic has been closed for replies.
Correct answer

Try moving the order at which you do this. Try setting the policy before you add the icons.

1 reply

Correct answer
June 9, 2009

Try moving the order at which you do this. Try setting the policy before you add the icons.

tatiana1Author
Inspiring
June 9, 2009

Thank you, it worked wonderfully! Actually, I had it before loading the icons and I moved it afterwards. But why does it make such a difference? Is it a Flash bug?

June 9, 2009

Not real sure. The components in AS2 are very strange. I didn't encounter that one before it was just a guess based on their pickiness(if that's a word). The AS3 components seem to be a major upgrade. I actually just built most of my components myself for AS2. They were light weight and easy to customize, however the datagrid is very difficult. Good luck!