Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2017-07-25 Thread Anthony
On Monday, July 24, 2017 at 2:04:19 AM UTC-4, rāma wrote: > > Still no solution? > The grid now includes a element with elements like the following: So, you can use CSS rules to control the width of columns based on field names or column numbers. Anthony -- Resources: - http://web2py.com

Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2017-07-23 Thread rāma
Still no solution? On Wednesday, 5 October 2011 19:37:39 UTC+8, Anthony wrote: > > I think if you specify a much longer maxtextlength, the text will > ultimately wrap, but it may cause the column to be much wider than you > want. Maybe all the th's and td's should include column-specific classes

Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2011-10-05 Thread Anthony
I think if you specify a much longer maxtextlength, the text will ultimately wrap, but it may cause the column to be much wider than you want. Maybe all the th's and td's should include column-specific classes so we can use CSS to control the width and other attributes of each column. Anthony

Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2011-10-04 Thread Johann Spies
On 3 October 2011 20:02, Massimo Di Pierro wrote: > maxtextlengths={'tablename.fieldname':20}, # per field > maxtextlength=20, # default > > It would be nice to have a possibility to wrap text in a column. Regards Johann -- May grace and peace be yours in abundance thr

[web2py] Re: wrapping long text lengths in grid/smartgrid

2011-10-03 Thread Massimo Di Pierro
maxtextlengths={'tablename.fieldname':20}, # per field maxtextlength=20, # default On Oct 3, 5:50 am, David Marko wrote: > Here is the complete signature of grid method from source there is > really no truncate param. > >   def grid(query, >              fields=Non

Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2011-10-03 Thread David Marko
Here is the complete signature of grid method from source there is really no truncate param. def grid(query, fields=None, field_id=None, left=None, headers={}, columns=None, orderby=None, searchable=T

Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2011-10-02 Thread Johann Spies
On 1 October 2011 05:28, Bruno Rocha wrote: > grid should have a truncate parameter. It seems that there is none at the moment. I got TypeError: grid() got an unexpected keyword argument 'truncate' when trying form = SQLFORM.grid(query, columns = columns,deletable = False,

Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2011-09-30 Thread Bruno Rocha
grid should have a truncate parameter.

[web2py] Re: wrapping long text lengths in grid/smartgrid

2011-09-30 Thread Stefaan Himpe
A partial reply to my own questions: I was wondering about grid/smartgrid: currently we can use maxtextlength=XXX to indicate the max length of a column. If the real length is longer than XXX, the text is chopped at a suitable length and "..." is added to it. If you configure a long maxtextlengt