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.

Reply via email to