[web2py] Re: option to move smartgrid buttons to the left side

2012-10-05 Thread Mark
I met the same problem and found a solution. I changed the id field into a button, and actually, any fields can be buttons or links in the grid. For example: db.person.id.represent=lambda id,r: DIV(A('View',_class='button',_href=URL('table',args=['person','view','person',r.id])),

Re: [web2py] Re: option to move smartgrid buttons to the left side

2012-10-05 Thread Adnan Smajlovic
thanks Mark for this. will save and use it... On Fri, Oct 5, 2012 at 5:02 PM, Mark czhang2...@gmail.com wrote: I met the same problem and found a solution. I changed the id field into a button, and actually, any fields can be buttons or links in the grid. For example:

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread Ross Peoples
I was wondering about the previously. I haven't tried this yet, but as a temporary workaround, are you able to insert buttons using JavaScript?

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread Adi
Thanks Ross. I'm not sure how to do it, plus to assign the same functionality as existing buttons. Do you have some sample from your code? Just tried the application also on the iphone, and (smartgrid) horizontal scroll doesn't work there either... Practically, can't reach buttons :) Anyone

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread peter
I use sqlform.grid, I use 'links' for edit and delete. These appear as buttons on the right hand column. I have no problem accessing these buttons on my android phone. Are you sure you are attributing the problem correctly? My web2py website is identical on my android phone to what appears on a

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread Adi
Hi Peter... I put a simple smartgrid together, with a longer text field... so this one doesn't scroll horizontally for me. I'm not sure if it's something that we did on css or somewhere, but i noticed it worked on ipad as it should... here is the link:

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread peter
Yes, I can not move right on your app. But surely the solution is to find out your css's problem with android rather than move the buttons to the left. There might be other reasons for the having the buttons on the left, but buttons on the right work fine with android if one can move right. Peter

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread Adi
Thanks Peter... still looking, and tried even some other applications, with original css, but didn't manage to scroll horizontally. If anyone has any ideas, please share :) Having an option to have buttons either on the left or right side, was just a suggestion... Our Customer Service and

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-08 Thread Adi
Still have to ask one more time about this possibility, or something else that would help for mobile viewing of smartgrid. Just opened the application on iPad and all is perfect, actually IMPRESSIVE. But on the android phone, I couldn't scroll horizontally to reach buttons and that is a

[web2py] Re: option to move smartgrid buttons to the left side

2012-01-21 Thread szimszon
Or the buttons in the right side could be next to the data fields and not in the scrollable area...