aspnet-devexpress-dot-web-dot-aspxgridbase-451e786e.md
Scrolls the view to the specified data item (row, card or record).
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public int ScrollToVisibleIndexOnClient { get; set; }
Public Property ScrollToVisibleIndexOnClient As Integer
| Type | Description |
|---|---|
| Int32 |
An integer value that identifies a data item by its visible index.
|
Find control-specific information (for ASPxGridView, ASPxCardView or ASPxVerticalGrid) in the sections below.
The number of rows displayed in a page is specified by the ASPxGridViewPagerSettings.PageSize property. However, you can reduce the grid’s height and enable vertical scrolling. To do this, enable the scroll bar by using the ASPxGridSettings.VerticalScrollBarMode property and specify the height, using the ASPxGridSettings.VerticalScrollableHeight property.
The ScrollToVisibleIndexOnClient method allows you to scroll the grid to make the required row visible on screen. This can also be done using a JavaScript function: ASPxClientGridView.MakeRowVisible.
To make a row displayed on another page visible, use the ASPxGridView.MakeRowVisible server-side method.
The maximum number of cards that can be displayed within a page, can be accessed by the CardViewFlowLayoutSettings.ItemsPerPage property, provided that the ASPxCardViewSettings.LayoutMode property is set to Flow. To do this in the Table layout mode, use the CardViewTableLayoutSettings.ColumnCount and the CardViewTableLayoutSettings.RowsPerPage properties.
However, you can reduce the grid’s height and enable vertical scrolling. To do this, enable the scroll bar by using the ASPxGridSettings.VerticalScrollBarMode property and specify the height, using the ASPxGridSettings.VerticalScrollableHeight property.
The ScrollToVisibleIndexOnClient method allows you to scroll the grid to make the required row visible on screen.
To make a row displayed on another page visible, use the ASPxCardView.MakeCardVisible server-side method.
The number of rows displayed in a page is specified by the ASPxVerticalGridPagerSettings.PageSize property. However, you can reduce the grid’s height and enable vertical scrolling. To do this, enable the scroll bar by using the ASPxGridSettings.VerticalScrollBarMode property and specify the height, using the ASPxGridSettings.VerticalScrollableHeight property.
The ScrollToVisibleIndexOnClient method allows you to scroll the grid to make the required row visible on screen.
To make a row displayed on another page visible, use the ASPxVerticalGrid.MakeRecordVisible server-side method.
See Also