db.define_table('testtable' Field('averylongtext', length=256) ) grid = SQLFROM.grid(db.testtable, maxtextlenghts={ 'testtable.averylongtextfield' : 256})
Clearer ? On Wednesday, December 19, 2012 7:04:29 PM UTC+1, software.ted wrote: > > Can you show an example on how that dictionary is passed to the grid? > On Dec 19, 2012 3:18 PM, "Niphlod" <nip...@gmail.com <javascript:>> wrote: > >> By default, maxtextlength is 20. maxtextlength=150 will truncate all >> columns only if they are longer than 150 chars. >> >> maxtextlength*s* instead allows to pass a dictionary of >> {'tablename.field' : length} to set this limit for every column. >> >> >> Il giorno mercoledì 19 dicembre 2012 13:24:04 UTC+1, software.ted ha >> scritto: >>> >>> Hi, >>> >>> I have noticed SQLFORM.grid column content is not wraping if its long >>> instead the content is cut and three dots (...) are appended to the >>> content. How do i allow more text to be displayed or adjust the width of >>> the grid? >>> >>> Teddy L. >>> >> -- >> >> >> >> > --