Page 1 of 1
DataGrid and a native Scroller
Posted: Tue Jun 14, 2011 11:40 pm
by yachris
Hello,
I've got a DataGrid with a lot of entries, and so of course I'd like to scroll it, using the native iOS scroller so it will look correct.
I've visited the two recent scroller discussion threads, and VERY much appreciate the comments of the people there.
And it *almost* works! The DataGrid scrolls, but only the lines visible initially are ever shown... I just see white below that. It's like the DataGrid isn't being redrawn properly.
I'll try to put together a simple example stack to show the problem, but I thought if someone knew the answer off-hand it'd be great to get an answer.
THANKS!
~~~~~~~~~~~~~
Edit: here's a stack that shows the behavior.
Re: DataGrid and a native Scroller
Posted: Sat Jun 18, 2011 9:38 am
by Jellicle
Go back to my stack - the example one you got this code from. Note that my scroller consists of 2 objects - a group called "Text Scroller" and a field called "textfield". Your adaptation uses only one object - the datagrid group you are trying to scroll. You need both. Try replacing the "textfield" object in my example stack with your datagrid, and go from there

Re: DataGrid and a native Scroller
Posted: Sat Jun 18, 2011 3:29 pm
by yachris
Hi Jellicle,
Thanks very much for getting back to me on this... I really appreciate it!
I tried your suggestion... as near as I could... and no joy. Please see the attached stack, which is my stack changed as you suggest (I think!).
If I've done something wrong, please let me know. I've gone over both stacks pretty carefully, and as near as I can tell didn't miss any settings or properties that may help.
Thanks!
Re: DataGrid and a native Scroller
Posted: Sun Jun 19, 2011 2:26 am
by Jellicle
The attached stack is my original with your datagrid inserted into the group instead of my text field. I noticed that your datagrid was a form...not sure if that was your problem, but making it a table seems to work in my stack

BTW my stack is Retina screen sized...
Re: DataGrid and a native Scroller
Posted: Sun Jun 19, 2011 2:41 am
by Jellicle
Whoops. I just clicked to the fact that you are wanting the grid to appear in a smaller rect on the card. That's do-able - you just need to adjust the rects you use. Can't do an example now (need to get out on my bike!) but have a go yourself

Re: DataGrid and a native Scroller
Posted: Sun Jun 19, 2011 3:11 am
by Jellicle
Here you go...does this work for you?
Re: DataGrid and a native Scroller
Posted: Sun Jun 19, 2011 7:51 pm
by yachris
Hey,
Thanks so much! That works fine. I don't know DataGrids well enough to know all the form/table implications, but I'll either make it work with the Table form, or switch to the "HTML in a native HTML page" trick mentioned elsewhere.
Actually, I think I'll dork around with it for a while, and if I can't get it to work with the Form mode, I'll submit it as a bug.
Again, thanks for helping... much appreciated!
Re: DataGrid and a native Scroller
Posted: Mon Jun 20, 2011 8:06 am
by Jellicle
No problem

If you are looking to use html, this stack may be of use. It uses iPhone-style css (found on the internet) and dynamically builds html code to display the latest 10 tweets from a couple of twitter accounts. Use at your own risk, your milage may vary, contents may have settled in transit etc etc. It's not perfect but may help you on your way.
Gerry