Ray Luo and I are developing a web2py jqgrid module that allows you to insert a jqgrid into a page with only a few lines of code.
# In
model
db.define_table('category',
Field('name', label='Name of Category'),
format='%(name)s')
db.define_table('things',
Field('name'),
Field('quantity',
'integer'),
Field('owner'),
Field('price','double'),
Field('category', db.category))
# In
controller
JqGrid = local_import('jqgrid', app='jqgrid',
reload=True).JqGrid
JqGrid.initialize_response_files(globals(), theme='ui-lightness',
lang='en')
def
things():
return JqGrid(globals(), db.things)()
See http://www.web2pyslices.com/slices/take_slice/140

