Example stack of a scrolling data grid?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Example stack of a scrolling data grid?

Post by FireWorx »

Hi,
Does anyone have a sample stack of an IOS scrolling data grid?

An example that takes into account a variable scroll content rect would be nice as the data will be populated from a database query with a variable amount of lines. In other words calculate the total amount of lines multiplied by the line height and then set the height of the scroll to that.

I have a table field that scrolls pretty good but when I substituted a datagrid in its place it didn't work at all.


Dave
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Example stack of a scrolling data grid?

Post by Klaus »

Hi Dave,

maybe this one could do the job:
http://mergext.com/controls/
http://mergext.com/controls/mergdatagridscroller/
?
Looks like its free...


Best

Klaus
Jarren
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 21
Joined: Sat Jan 19, 2013 3:31 am

Re: Example stack of a scrolling data grid?

Post by Jarren »

I've used scrolling datagrids with various heights quite frequently.

Code: Select all

set the height of group "DataGrid 1" to the dgNumberOfLines of group "DataGrid 1" * tRowheight 
set the top of group "DataGrid 1" to the top of group "Scroller"
Then in your create scroller handler,

Code: Select all

iphoneControlSet sScrollerID, "contentRect", (0, 0, tWidth,the bottom of group "DataGrid 1")
FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Re: Example stack of a scrolling data grid?

Post by FireWorx »

Thanks guys. Monte's Mergext control works pretty good. To me it was well worth the $9 it cost to just get it done and save all the scripting of the scrolling data grid.
Thanks!
Dave
Post Reply