Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to implement touch scrolling in GridView

$
0
0

This example demonstrates how to provide the capability to scroll GridView by dragging its rows to be able to use GridView on touch devices. The helper class implements a basic scrolling behavior and some type of inertial scrolling when you drag a row fast. You can modify the helper class logic based on your application requirements. In addition, in this example we created a custom GridView which allows you to increase the scrollbar's width to adapt it for touch scrolling. If you do not need this functionality in your real application, it is not necessary to use a custom View. Just copy the helper class to your application.

This example is outdated

In the latest version of our components, GridControl supports touch scrolling out of the box. So, you don't need to add any helper or change any property. This helper was created when this functionality was not supported by default. You can utilize the helper class from this example in case you are using an older version of our components or, for example, want to implement custom touch scrolling behavior.



Question Comments

Added By: John Nicol_1 at: 7/30/2014 6:07:48 PM    

can you inform us which version started supporting xtraGrid support without the need of the help class?

Added By: Jannet (DevExpress Support) at: 7/31/2014 12:28:10 AM    Hello John,
Touch support in GridControl was introduced starting with version 11.2. See the following ticket in confirmation of this:
XtraGrid - Provide Touch Screen Scrolling like IPhone Does

Viewing all articles
Browse latest Browse all 7205

Trending Articles