Page 1 of 1

Example stack of a scrolling data grid?

Posted: Mon May 20, 2013 9:11 pm
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

Re: Example stack of a scrolling data grid?

Posted: Mon May 20, 2013 9:23 pm
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

Re: Example stack of a scrolling data grid?

Posted: Mon May 20, 2013 11:01 pm
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")

Re: Example stack of a scrolling data grid?

Posted: Tue May 21, 2013 7:42 am
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