Re: [web2py] Re: Limit Length column

2012-09-06 Thread Anthony
No, you can add an id to the grid (or wrap it in a div with an I'd), and then add the id to the CSS selector. Anthony On Thursday, September 6, 2012 1:32:42 AM UTC-4, Mandar Vaze wrote: Anthony, I guess the following will apply to ALL the sqlform.grid in the app, correct ? Generally, we

[web2py] Re: Limit Length column

2012-09-05 Thread Mandar Vaze
Using maxtextlengths optional parameter partially helps. http://web2py.com/books/default/chapter/29/07?search=maxtextlengths I say partially because this param controls how many characters are displayed in the column (Only those many characters are sent by the server) If one has too many wide

[web2py] Re: Limit Length column

2012-09-05 Thread Anthony
If you want to control the column widths and allow the content to wrap if necessary, you can do so with CSS (and some JS in IE). Let's say you want to set the width of the 5th column. To support IE, in Javascript do: script $(function() { $('.ie .web2py_table

Re: [web2py] Re: Limit Length column

2012-09-05 Thread Mandar Vaze / मंदार वझे
Anthony, I guess the following will apply to ALL the sqlform.grid in the app, correct ? Generally, we have multiple different sqlform.grid across the app, and each instance may have different columns (and thus possible needing different column widths) I am looking for something like

[web2py] Re: Limit Length column

2012-09-03 Thread Fabiano Faver
Se for somente para por um limite maximo. Há os parametros maxtextlenght, um limita todas as colunas para o mesmo e o outro você passa um dicionário com os campos e os limites. Mas se for para setar um tamanho fixo para as colunas creio que será necessario usar CSS. Em segunda-feira, 3 de