+1 all work to improve the grid is good! I am a big fan of it..
On Tuesday, 17 April 2012 09:57:04 UTC+1, nikos wrote: > > Hello there follow web2py users, > > First of all, Massimo, thanks for the great work you have done to get > web2py to this high level of functionality. > > I recently started using it for a project and was faced with a challenge: > in SQLFORM.grid, when a table has many fields, the users have to scroll to > the far right to get to the action buttons, and this has proved cumbersome > to them. > The same goes for the links that we are allowed to add to the grid. > > I chose to resolve this issue by adding two extra optional arguments to > SQLFORM.grid, namely buttons_placement and links_placement > The two are expected to have a value among 'left', 'right', 'both' > Both default to 'right' to maintain backward compatibility. > > If you set them to 'left' the corresponding column(s) will appear at the > beginning of the grid (1st column). > If you set them to 'right, they will appear at the end (as it was already > working) > If you set them to 'both', the columns will appear twice, at the beginning > and at the end (usefull for large tables where the user can locate the > column he wants to decide upon and find a button closeby, either at the > beginning or the end) > > I am attaching a patch against the stock 1.99.7 that I used to begin with. > > It would be great if some form of this patch would be included in future > releases. > > Again, thanks for all the hard work you all have put into this. > > Nikos > > >

