Hello, I have this table in my model:

db.define_table('data', 
                          Field('description', 'string'), 
                          Field('value', 'integer'))

this controller in default.py:

def index():
     tableN = SQLFORM.grid(db.data, maxtextlengths={'data.description':500})
     return locals()

and this view:

<div class="divName">
    {{=tableN}}
</div>

Thanks to maxtextlengths I can show all the description texts but since 
they are large I can't see their respective value in the table that 
SQLFORM.grid generates unless i use the horizontal scroll. Is there a way I 
can still show all the description data but in a column with a small width? 
It doesn't matter if the height of the cell grows but I dont want to use 
the scroll because the table is big and I dont want to scroll all the time 
I want to compare a description with their value. How can I achieve this? 
Thank you!

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to