I have a very simple web grid component. The grid is based on a SQL Server table.
I want to show grid rows in different colors depending on the value in a table field. So in Grid Properties (Conditional style-client side) I add a condition 'Dispatched = true' and specify a red background with white text. When I run the grid the rows are shown in the proper color. If I edit a row for which 'Dispatched = false" (it is shown in the default black on white) and change 'Dispatched' to true and then save the record, the row style changes to white on red, as it is supposed to. HOWEVER, if I then re-edit the row, change 'Dispatched' to false and save the record the row STAYS white on red. Scrolling up and down in the grid page does nothing. In order to get the row to change to the proper (black on white) style I have to either change to a different page and change back or restart the grid.
Does this sound like a bug or could it be something in the way I've defined the condition? Just for laughs I defined a SECOND condition: 'Dispatched = false' and specified the default styling. It made no difference.
BTW, this is with (AFAIK) the latest version of AA.
Thanks for any ideas.
Edit: Apparently, if I set a default, or catch-all condition, AND SPECIFY A CUSTOM COLOR then it works. What looks to be happening is that when none of the conditions is satisfied Alpha won't do anything to the row style, rather that setting it to the default. I could use a default condition but I'm using alternate row shading so I don't know how to get that right. There also seems to be an issue with the height of the selector bar on rows that have wrapped cells but I'm not going to address that right now.
I want to show grid rows in different colors depending on the value in a table field. So in Grid Properties (Conditional style-client side) I add a condition 'Dispatched = true' and specify a red background with white text. When I run the grid the rows are shown in the proper color. If I edit a row for which 'Dispatched = false" (it is shown in the default black on white) and change 'Dispatched' to true and then save the record, the row style changes to white on red, as it is supposed to. HOWEVER, if I then re-edit the row, change 'Dispatched' to false and save the record the row STAYS white on red. Scrolling up and down in the grid page does nothing. In order to get the row to change to the proper (black on white) style I have to either change to a different page and change back or restart the grid.
Does this sound like a bug or could it be something in the way I've defined the condition? Just for laughs I defined a SECOND condition: 'Dispatched = false' and specified the default styling. It made no difference.
BTW, this is with (AFAIK) the latest version of AA.
Thanks for any ideas.
Edit: Apparently, if I set a default, or catch-all condition, AND SPECIFY A CUSTOM COLOR then it works. What looks to be happening is that when none of the conditions is satisfied Alpha won't do anything to the row style, rather that setting it to the default. I could use a default condition but I'm using alternate row shading so I don't know how to get that right. There also seems to be an issue with the height of the selector bar on rows that have wrapped cells but I'm not going to address that right now.