[web2py] Re: how to assign classes to TDs in SQLFORM.grid

2013-09-25 Thread Tim Richardson
I think it would be nice to solve this when the SQLFORM.grid is made I've made a pull request and started a thread here https://groups.google.com/forum/#!topic/web2py-developers/qx70MzEnP-I -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2p

[web2py] Re: how to assign classes to TDs in SQLFORM.grid

2013-09-24 Thread Simon Ashley
> > May not work out of the box but a hint could include something like > $(this).find('td').eq(1).addClass('highlighted') > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/lis

[web2py] Re: how to assign classes to TDs in SQLFORM.grid

2013-09-24 Thread Anthony
If you know the column number, you could also use the jQuery nth-child selector: http://api.jquery.com/nth-child-selector/. Anthony On Tuesday, September 24, 2013 8:44:32 AM UTC-4, Tim Richardson wrote: > > The grid has a checkbox from use of selectable. Submit invokes a function > which proces

[web2py] Re: how to assign classes to TDs in SQLFORM.grid

2013-09-24 Thread Tim Richardson
The grid has a checkbox from use of selectable. Submit invokes a function which processes the selected rows. Each row has a value. I plan to use jquery to show the sum of all selected rows. It would be easiest to use a class to find the cell in each row that contains the value I want to sum. -

[web2py] Re: how to assign classes to TDs in SQLFORM.grid

2013-09-24 Thread Simon Ashley
Suspect that a jquery onclick event may be involved, followed by a calculateSum. Would help if you posted a simple example of what you need to happen. (based on lateral thinking/interpretation of your first paragraph) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -