scrolling
mode
The following scrolling modes are available in the widget:
Standard
A user scrolls a single page only. Scrolling appears only if the widget height cannot fit all rows of a page. In this mode, scrolling is auxiliary, while main navigation is performed with the pager. If paging is disabled, the widget loads all rows at once, which may decrease the widget performance. In this case, we recommend choosing another scrolling mode.Virtual
Pages are loaded when they get into the viewport and removed once they leave it. Use this mode if a user should be able to scroll data jumping from one page to another.Infinite
Each next page is loaded once the scrollbar reaches the end of its scale. Use this mode if a user should scroll data gradually, from the first to the last page.NOTESet the grouping.allowCollapsing option to false when using infinite scrolling in conjunction with grouping.
When using the widget as an ASP.NET MVC Control, specify this option using the GridScrollingMode
enum. This enum accepts the following values: Standard
, Virtual
and Infinite
.
Infinite Scrolling Demo Virtual Scrolling Demo
See Also
preloadEnabled
Specifies whether the widget should load pages adjacent to the current page. Applies only if scrolling.mode is "virtual".
scrollByContent
Specifies whether a user can scroll the content with a swipe gesture. Applies only if useNative is false.
scrollByThumb
Specifies whether a user can scroll the content with the scrollbar. Applies only if useNative is false.
showScrollbar
Specifies when to show scrollbars. Applies only if useNative is false.
The scrollbars help to scroll the content vertically and horizontally. Vertical scrolling is available when all the rows do not fit in the widget's height. Horizontal scrolling is available when all the columns do not fit in the widget's width, which can happen when columns have fixed widths or the columnAutoWidth option is set to true.
When using the widget as an ASP.NET MVC Control, specify this option using the ShowScrollbarMode
enum. This enum accepts the following values: OnScroll
, OnHover
, Always
and Never
.
useNative
By default, the widget employs native scrolling on most platforms, except non-Mac desktops and devices based on Android older than version 4. To employ native scrolling on all platforms without exception, assign true to this option. If you assign false, the widget simulates scrolling on all platforms.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
We appreciate your feedback.