Steven_Dayton@adobeforums.com wrote:
> I am using a table where I have Apply Alternate Row Shading checked. When a row is deleted by clicking on a delete row button the shading doesn't adjust and the user may end up with two rows with the same shade colour adjacent to each other. Is there a way to get the shading to update with a script when the delete row button is clicked?
The javascript code for the row shading is on the initialize method for each row. This code is
auto-generated by the table wizard. Because it's defined on the initialize method, the row color is
only updated when the row is first created. Move the code from the initialize event to the
layout:ready event and it will update each time your form layout changes.
In my opinion, Adobe's choice to use the initialize event was a poor one.
--
Justin Klei
Cardinal Solutions Group
www.cardinalsolutions.com