Hello. I've got a problem with grid component. I added grid to view with LOAD function because i need to refresh data continuously:
{{extend 'layout.html'}} {{=LOAD('default', 'grid.load', ajax=True, times="infinity", timeout=10000 )}} and my controler looks like below: def grid(): links = [lambda row: A(row['host_name'], _href='http://' + row[ 'host_name'] + ':' + row['port'])] selectable = [('Do something 1', lambda ids: status(ids)), ('Do something 2', lambda ids: status(ids))] clients_grid = SQLFORM.grid(db.clients, editable=False, details=False, maxtextlength=100, links=links, selectable=selectable) return dict(clients_grid=clients_grid) That code works ok, but when grid is refreshing, select and sort disappear. Do you have any idea how to do it correctly? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.