That's what I was thinking also but I wanted to make sure I wasn't missing some hidden capability of web2py
On Wednesday, November 20, 2013 6:53:21 AM UTC-5, Niphlod wrote: > > do it in your own views. altering all the markup of the grid and break it > down to do what you're asking it's just asking for disasters at any new > release of the grid's code (and lots of cpu wasted for nothing) > > On Wednesday, November 20, 2013 3:11:51 AM UTC+1, User wrote: >> >> This sounds like what I'm looking for. Currently I'm manually creating a >> list display by having a for loop in the view to spit out <li> items. >> However I'm wondering if I can use sqlform.grid to replace the custom <ul> >> list. >> >> 1. Is this expected usage of sqlform.grid or is this more of a hack? >> >> 2. Can someone give a very basic example of what "myformat" function >> might look like? >> mydisplay = myformat(grid.rows) >> grid.element('.web2py_table', replace=mydisplay) >> >> >> >> >> On Saturday, September 21, 2013 12:34:51 AM UTC-4, ssuresh wrote: >> >>> Hi, >>> I want to use sqlform.grid and all its features, but do not want the >>> display in a tabular format. Is there a way in which I can change the >>> display of sqlform.grid to my custom <div> instead of <table>. >>> >>> I tried doing some formatting on grid.rows >>> >>> mydisplay = myformat(grid.rows) >>> grid.element('.web2py_table', replace=mydisplay) >>> >>> but still the resultant output is displayed within a <table>. Is there >>> any alternatives? >>> >>> Any help would be greatly appreciated. >>> >>> thanx, >>> Suresh >>> >> -- 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/groups/opt_out.