Simple, cross platform mobile datagrid scrolling.

This control is a wrapper around a datagrid. When you drop it on a stack it will add a new datagrid so if you want to wrap an existing datagrid then delete that one and copy your existing datagrid into the group.

The control will use the native scroller on iOS and a scripted momentum scroller on Android. You can change the look of the android scrollbars however you like using the livecode inspector.


command updateContentRect

Dispatch or send updateContentRect to the control after setting the data grid's dgData. This is required to enable the scroller on iOS if the data grid does not have enough content to enable the scroller during it's preOpenControl handler.


dispatch "updateContentRect" to group "mergDataGridScroller 1"