Flash Form Cell Renderer Weirdness

Posted By : todd sharp Posted At : October 24, 2006 8:29 AM Posted In: Flash Forms, ColdFusion

4

I recently had to revisit my Flash Form combobox cell renderer examples to use the technique in a project that I am working on and found a very weird behavior that I'm hoping someone can help me figure out. Here is what's happening: When using a custom cell renderer in conjunction with an editable grid that allows row inserts, when the rows extend beyond the visible height of the grid, the combobox renderers begin to act very weird. Go to the example below and add about 15-20 rows and you'll see what I mean. After adding the rows, scroll up and down in the grid and things will just keep changing. Anyone know what's up? I am a little concerned that this is one of the drawbacks to hacking up this solution, but there really is no difference in this technique than techniques employed in Flex (which is really what Flash Forms are).

Example

Comments (4)

Michael Ramirez's Gravatar I get the same thing in Flex when I use a custom ItemRenderer. This is because the ItemRenderer is recycled and redrawn as you scroll. In Flex I attached a function to the render event on my CheckBox component so that I could tell Flex how to redraw my CheckBox after the recycle.I am not sure what you would do in Flash. Hope this helps:)

todd sharp's Gravatar Any way you could share the code you used? I'm sure I could hack it into working.

Chris's Gravatar Todd, Have you figured this one out? I need to have this functionality in a current CF application. I'm using a cfform/cfgrid and need to have a dropdown the cells.

todd sharp's Gravatar Yup...it was quite simple too.

Check this post:

http://cfsilence.com/blog/client/index.cfm/2006/10...