On Monday, April 23, 2012 7:57:23 PM UTC+5:30, Bruce Wade wrote: > > Yeah see that was my original question how to tell grid to only > select/count the first 50,000 records instead of it just generating pages > for all the records. >
I understand that this is an year-old thread - but I too have a requirement to show ONLY X records out of total Y records it would otherwise show across pages. Other thing that might work for me is if there is a way to NOT show the pagination at all. This way I can set paginate=X and since user can't "access" pagination, it would provide similar result as if SQLFORM.grid limited the number of records displayed to the user. This is useful when you want to show like "Top 10" (Or in case of Bruce Above, Top 200 Ads) of some query. -Mandar -- --- 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.