def grid(query, fields=None, field_id=None,
left=None, headers={}, columns=None,
orderby=None, searchable=True,
sortable=True, paginate=20, deletable=True,
editable=True, details=True,
selectable=None, create=True, csv=True,
links=None, upload = '<default>',
args=[], user_signature = True,
maxtextlengths={}, maxtextlength=20,
onvalidation=None, oncreate=None,
onupdate=None, ondelete=None,
sorter_icons=('[^]','[v]'),
ui = 'web2py',
showbuttontext=True,
_class="web2py_grid",
formname='web2py_grid',
search_widget='default',
)
Many of the options are True/False and you can switch them off.
The smartgrid has the same arguments but they are dictionaries for
example:
SQLFORM.grid(db.mytable, editable=False)
SQLFORM.smartgrid([db.mytable], editable = {'mytable',False})
On Oct 10, 8:52 am, Massimiliano <[email protected]> wrote:
> I like the new grid/smartgrid a lot, but when you have many linked tables
> the grid appears a little bit cluttered.
>
> What do you think of an option that hide all links/buttons (but not detail
> button) from the grid, but show them on the detail view?
>
> Thank you
> --
> Massimiliano