> 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 maxtextlength, at least with the default
> template the column as displayed becomes very wide
> Is it somehow possible instead to configure long maxtextlengths and
> then have the text wrap at some column?
I still have no idea here.
> And related to this: Instead of having long maxtextlength and
> wrapping, I could also enable the "View" button, but then I get to see
> too many details (certain table columns I don't think are worth
> displaying.) Can I customize the fields that are shown by clicking the
> "View" button?
Yes! By defining the database table Fields as writable=False and
readable=False.
grid should have a truncate parameter.
TypeError: grid() got an unexpected keyword argument 'truncate'
maxtextlengths={'tablename.fieldname':20}, # per field
maxtextlength=20, # default
Still no solution?
<col id="tablename-fieldname" data-column="1">