momentum scrolling on touch devices.

0
0

Hi,

I read release notes in version 1.3.59. In general part you wrote “Improved momentum scrolling on touch devices.”. However, with the example you provided on post (https://wisej.com/support/question/fast-scrolling-in-flowlayoutpanel-on-tablet) and with my test cases, I couldn’t get the effect like mobile list view scrolling on real mobile devices. For providing the effect I had an unsuccessfull attempt to implemt iscroll.js (https://github.com/cubiq/iscroll) to a control.

In addition, both in flow layout and listbox how could I scroll the content without scroll bars. Secondly, Is there a way to define a row template on datagridview and like as controls can be bindable? and then of course scrolling issues on real mobile devices.

Thank you.

  • You must to post comments
0
0

Hello Adil,

I just tested the sample you linked to using both  the chrome emulation and a real mobile device (iPhone 7). See small video of the chrome emulation here: https://www.screencast.com/t/U6M0403aJOJc

The issue that you may have encountered with the sample is that it doesn’t create enough items for a portrait mobile device so it doesn’t initialize the scrolling. That’s simply an issue with the code in the sample. If you increase the initial number of created panels to 20 or 30 it starts scrolling.

/Luca

  • You must to post comments
0
0

There are a couple of ways to hide the scrollbars and still scroll on mobile devices. You may also have tiny scrollbars that becomes bigger when the widget is focused. And you can disable completely the custom themed scrollbars and use native scrolling instead.

However, native scrolling causes problems with the datagrid because browsers don’t let you set the scroll step size and they scroll a different number of pixels( 40, 50 or 60 for each step). Our grid implements fully virtual scrolling with variable height rows so we need the scrollbar to scroll by 1 row. We can use pixel scrolling with fixed height rows.

You can bind a datagrid to many different data sources. The DGV control lets you define a template row, row styles, cell styles, etc. If you want to put custom html inside a cell, you can set AllowHtml = true.

The  momentum scrolling is an accelerated scrolling that should occur when you swipe. It’s not supported for datagridview and listview controls since their rendering is virtual and limited to the viewport. It should work for all other scrollable content. I will test and get back to you with more details.

/Luca

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.