Page 1 of 1

native scroller datagrid

Posted: Wed Oct 27, 2021 12:01 pm
by drunblut
Hi,

i have a datagrid form, which works fine on my android mobile with a native scroller when the scroller starts at vscroll = 0. If i set the vscroll of the covering group to 100 for example, the datagrid will be moved to the correct point, but the native scroller then doesn't work. Swiping up (scrolling down) the vscroll jumps to 0, by swiping down there is no smooth scrolling.

Any ideas, what i'm doin wrong?

Grets

Andreas

Re: native scroller datagrid

Posted: Wed Oct 27, 2021 12:37 pm
by Klaus
Hi Amdreas,

did you also set the hscroll of the native scroller?
Like this:

Code: Select all

...
mobilecontrolset "your_scroller_here", "hscroll", 100
...
Otherweise the group's scroll and scroller are out-of-sync as you experienced.


Best

Klaus

Re: native scroller datagrid

Posted: Wed Oct 27, 2021 2:40 pm
by drunblut
Hi Klaus,
thanks for your reply! Should that be done in the createlistscroller?

Grets

Re: native scroller datagrid

Posted: Wed Oct 27, 2021 2:43 pm
by Klaus
Hi Andreas,
drunblut wrote:
Wed Oct 27, 2021 2:40 pm
Should that be done in the createlistscroller?
this should be done right after setting the scroll of your field, whenever that happens!


Best

Klaus

Re: native scroller datagrid

Posted: Wed Oct 27, 2021 3:59 pm
by drunblut
Hi Klaus,

that was the important hint. i fixed it! Thanks a lot!!

Grets
Andreas