This topic is locked

Dashboard Row Selected problem

9/1/2017 12:19:15 PM
ASPRunner.NET General questions
M
Molasar author

Hello,
I have a custom event in the List Page: After record processed (as per instructions in the manuals, etc.), like so:



if (data["CveOpe"].ToUpper() == "COMC")

{

record["css"] += "background:#fffe9b;";

}

else if (data["CveOpe"].ToUpper() == "VEMC")

{

record["css"] += "background:#bdfefe;";

}

else if (data["CveOpe"].ToUpper() == "NETO")

{

record["css"] += "background:whitesmoke;";

}


This works fine.
However, if I use this "table" in a dashboard, the selected row color seems to get overridden by the above event and no row is actually shown to be selected (although it is, since a linked table gets updated).
My question is: How can I specify custom row colors without affecting the dashboard selected row color?
Please advise.
Regards,
Mike

jadachDevClub member 9/1/2017

You may have to create a custom view based off that table and do not use the event.

M
Molasar author 9/1/2017



You may have to create a custom view based off that table and do not use the event.


I tried that, but then the table is rendered with standard alternating background colors.
Since this is a financial app, the user needs to know at a glace which records are BUY, SELL and NET, hence the custom colors.