Inspect the element in Chrome, it will say where it gets the width, for my
app, it's web2py.css and the width is 300px. You can change the CSS to make
it larger, or take out the width and let it automatically size.
On Tuesday, January 15, 2013 1:13:27 PM UTC-7, Saba wrote:
>
> thanks for the reply. I already tried that and it seems maxtextlengths
> applies to only when displaying all the data. But when I try to add new
> data (in the new page that opens after clicking the Add button), the
> dropdown column width for the fields are still small. How to increase the
> width of the dropdown? can you please suggest?
>
>
>
> On Monday, January 14, 2013 7:58:53 AM UTC-8, Ramos wrote:
>
>> i know that in form.smartgrid you can set the with of columns with
>> a paramenter in form.smartgrid(,,,, maxtextlengths={10,20,etc}
>>
>>
>>
>> maxtextlength sets the maximum length of text to be displayed for each
>> field value, in the grid view. This value can be overwritten for each
>> field
>> using maxtextlengths, a dictionary of ’tablename.fieldname’:length
>>
>> maxtextlengths={},
>> maxtextlength=20,
>>
>>
>> 2013/1/14 Saba <[email protected]>
>>
>>> Any suggestions please?
>>>
>>> --
>>>
>>>
>>>
>>>
>>
>>
--