How to set style for added rows on a editable list?

  • 31 January 2013
  • 1 reply
  • 0 views

Badge +4

I want to be able to set a different background color for rows added by the user that were not saved into the DB.


Not finding an option to specify this on the editable list settings.


Is there any right approach that you recommend to do it ?


With firebug I cannot identify a different CSS class between new ones and existing ones.


 


Regards,


Tiago Calado


1 reply

Badge +5

I' thinking:
On one field in your row, set the default style to red.  Set a custom style to a hidden ID col. (if ID >0 background = none).  Then the rule that adds stuff to the DB, just add a list refresh rule.  Stuff with no ID will be red.  Once it has an ID (is commited) the custom rule will kick in.

Reply