[web2py] Re: getting access to sqlform.grid forms in a view

2012-12-02 Thread Paolo Caruccio
If #article_DTU_Content is a textarea {{results.update_form.element('#article_DTU_Content')['_cols']=300}} should work as well as {{results.update_form.element('#article_DTU_Content')['_rows']=10}} unless you set the element width somewhere. In other words, for example (code from my controlle

[web2py] Re: getting access to sqlform.grid forms in a view

2012-12-01 Thread david.waldrop
You are right. As usual. Thanks. > >> > --

[web2py] Re: getting access to sqlform.grid forms in a view

2012-11-27 Thread Massimo Di Pierro
That's a css issue. I do not think there is a rows attribute. Only height. On Sunday, 25 November 2012 08:36:02 UTC-6, david.waldrop wrote: > > Oops - dumb question - I figured it out. One has to reference the sqlgrid >> variable name passed to the view. In my case "results". However, I now >

[web2py] Re: getting access to sqlform.grid forms in a view

2012-11-25 Thread david.waldrop
> > Oops - dumb question - I figured it out. One has to reference the sqlgrid > variable name passed to the view. In my case "results". However, I now > cannot seem to change the width of the desired element, but I can change > the number of rows. Any ideas? {{extend 'layout.html'}} {{if