Hmm... Maybe you could just move the button to the left??

buttons_placement = 'right',
links_placement = 'right'


These are SQLFORM.grid() switch...

Richard


On Mon, May 13, 2013 at 2:18 PM, Thomas Wimmer <t...@xxall.net> wrote:

> i found a similar jquery script here:
> http://www.electrictoolbox.com/jquey-make-entire-table-row-clickable/
>
> but i dont use jquery in my app und would prefer another way...
>
> Am Montag, 13. Mai 2013 19:56:19 UTC+2 schrieb Richard:
>
>> You will need a little touch of jquery I gues...
>>
>> Something like this :
>>
>> <script>
>> $('#myTable tr').click(function() {
>>     var url = "{{=URL(f='YOURCONTROLLERFUNC'**,
>> args=$(this).(':first').val()}**}"* // If the first column of your table
>> containt the id of your record*
>>     window.location.assign(url)
>>  });
>> </script>
>>
>> CODE NOT TESTED
>>
>> Richard
>>
>>  --
>
> ---
> 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.
>
>
>

-- 

--- 
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