[web2py] Re: sqlform.grid with div instead of html tables

2013-11-20 Thread Niphlod
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

[web2py] Re: sqlform.grid with div instead of html tables

2013-11-20 Thread User
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

[web2py] Re: sqlform.grid with div instead of html tables

2013-11-19 Thread User
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.

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-23 Thread ssuresh
Yes..Now it works.. I was returning row object back from myformat function. Web2py was internally creating tables when it encounters a row object. But when i changed the myformat function to return data formatted as divs, it is working as expected.. Thanx for the help On Sunday, September

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread Niphlod
nope, there's absolutely no support to output a grid as a series of divs. btw, that's what the tables are for (displaying data). I understand the move done a few years ago to avoid using table as a way to format the whole page in sections, but really I don't understand the need to remove table

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread ssuresh
The problem is that my data does not display too well in a table grid. Some of my columns are descriptions that do not fit well inside a grid. So I want to display it in a more readable alternate formats. - Something like *Title * description ..

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread Anthony
mydisplay = myformat(grid.rows) grid.element('.web2py_table', replace=mydisplay) The above should work (works for me). Can you show more of your code and the resulting HTML? Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread Anthony
On Saturday, September 21, 2013 7:24:24 AM UTC-4, Niphlod wrote: nope, there's absolutely no support to output a grid as a series of divs. btw, that's what the tables are for (displaying data). I understand the move done a few years ago to avoid using table as a way to format the whole page

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread Adi
I'm formatting the data for certain columns within each row by calling a function, and returning an XML element, which then displays HTML within that cell. Code bellow is just to give you an idea... GRID: links=dict(orderMaster=[

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread Anthony
Sorry, not sure I follow. What does this have to do with the following code: mydisplay = myformat(grid.rows) grid.element('.web2py_table', replace=mydisplay) The above should replace the entire grid table (which means the links argument would be useless, as it is used to add elements to the

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread Adi
Sorry Anthony, I should've been more specific... Wasn't related to your example, that's why I replied to the original message. I was just showing the way to format the data, even with the grid as is, without replacing the whole format. On Saturday, September 21, 2013 5:51:49 PM UTC-4,