Get a datagrid form to scroll in mobile env - SOLVED

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tomsve
Posts: 46
Joined: Tue Jan 20, 2015 5:01 pm

Get a datagrid form to scroll in mobile env - SOLVED

Post by tomsve » Mon Feb 27, 2017 1:25 pm

I've been trying to get this to work for several days here now, without success. I don't want to loose more hair - so I ask you guys. :-)

I'm using LiveCode 8.1.3, xCode 8.2.1 with the iOS 10.2 simulator.


So I put the datagrid "dgDecks" (it's a list with decks) in a group, and tried to scroll it using mobileControlCreate "scroller", without getting it to work. I've tried to scroll it without a group since the datagrid seems to be a group of its own anyway, without success. I tried to put the datagrid in a group that is already working ("Scroller Example.livecode" that I found somewhere here), but I couldn't get it to scroll.

The datagrid should cover just a part of the card - not the whole card.

I do _see_ the iOS scroller scroll, but the datagrid form doesn't move.

Anyone have a working example of a datagrid form for use on mobile that covers just a part of the card, perhaps?

Thank you very much!
Tom
Last edited by tomsve on Sat Mar 04, 2017 2:10 pm, edited 1 time in total.

tomsve
Posts: 46
Joined: Tue Jan 20, 2015 5:01 pm

Re: Get a datagrid form to scroll in mobile env

Post by tomsve » Sat Mar 04, 2017 2:10 pm

I managed to solve it after some time, with the help of some code I found in the mailing list (that I didn't know existed).

The file contains a data grid style "table", but I've confirmed it works with a "form" as well, both in the simulator and on my iPhone 6.

Tom
Attachments
Grid test.zip
A scrolling data grid that works in iOS
(6.25 KiB) Downloaded 182 times

Post Reply