Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
iPhone or Android auto-zoom-in on jqGrid form?
27/08/2012
21:26
Avatar
RonConrad
Indiana
Member
Members
Forum Posts: 9
Member Since:
21/08/2012
sp_UserOfflineSmall Offline

I am trying to develop a version of my jqGrid that hides all but two columns, and then fills up the screen of my iPhone.

I tried the following: 

        $(window).bind('resize', function() {
            $("#list").setGridWidth($(window).width());
        }).trigger('resize');

and it basically expanded the column widths of the two visible columns...What I really want it to do is keep the same width, but auto-zoom in to fill the phone's screen width so the user doesn't have to zoom in.

Is there a way to do this on iPhone and Android in my javascript code?

27/08/2012
22:13
Avatar
RonConrad
Indiana
Member
Members
Forum Posts: 9
Member Since:
21/08/2012
sp_UserOfflineSmall Offline

Found a solution using a meta tag...works on my iPhone, and hopefully it works on my Android phone:

I put this line at the end of my Head section:

<meta name="viewport" id="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=10.0,initial-scale=1.0" />

With a little tweaking I have a grid with two columns that "auto-zooms" to fit the phone.Smile

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
47 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information