[web2py] formatting grid

2014-11-10 Thread Alex Glaros
1. to get a field in grid to align vertically top, what is correct syntax? Tried this: db.Suggestion.suggestionShortSummary.represent = lambda value,row: DIV(value , _style='vertical-align:top;') 2. is it possible to put a line break after one of the fields in grid? thanks, Alex Glaros --

[web2py] Formatting GRID rows data based on the field value in database

2014-06-05 Thread Sarbjit
Hi, I am using GRID in my application, my requirement is that I want to display the field value in different color (RED/GREEN) OR I want to display the images (Tick Mark Image/Cross Mark Image) based upon the data in the field. e.g. (Sample example) Product_ID Product_Title