Good point. Please open a ticket so I do not forget.
On Monday, 11 March 2013 20:16:36 UTC-5, 黄祥 wrote:
>
> just a suggestion, why not add feature this as a default grid / smartgrid?
> thank you
>
> On Tuesday, March 12, 2013 8:14:09 AM UTC+7, Massimo Di Pierro wrote:
>>
>> <button onclick="jQuery('input[type=checkbox]'
>> ).each(function(k){jQuery(this).attr('checked', 'checked');});">select
>> all</button>
>>
>> On Monday, 11 March 2013 19:01:50 UTC-5, Jack wrote:
>>>
>>> Hi all,
>>>
>>> I was playing around with selectables in the grid and smartgrid and
>>> found this example code in the mailing list:
>>>
>>> selectable = lambda ids: delete(ids)
>>> form=SQLFORM.grid(query,
>>> selectable=selectable)
>>>
>>> def delete(ids):
>>> to_delete=db(db.tabla.id.belongs(ids))
>>> to_delete.delete()
>>>
>>>
>>> It enables a checkbox in front of each row and a button to delete the
>>> selected rows. This is working as expected but I was wondering is there a
>>> way to enable a select all checkbox?
>>> I did some search but couldn't find anything. Is there something I'm
>>> missing?
>>>
>>> Thanks
>>>
>>
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.