New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Contains properties related to customizing the settings for scrolling operation in Telerik RadGrid.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridScrolling : ObjectWithState

Inheritance: objectObjectWithStateGridScrolling

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public GridScrolling(StateBag OwnerStateBag, RadGrid ownerGrid)
Parameters:OwnerStateBagStateBagownerGridRadGrid

Properties

Gets or sets the AJAX vertical scroll position of the grid.

C#
[Browsable(false)]
public virtual string AJAXScrollTop { get; set; }

Gets or sets a value indicating whether scrolling will be enabled in Telerik RadGrid.

C#
public virtual bool AllowScroll { get; set; }
Property Value:

true, if scrolling is enabled, otherwise false (the default value).

Gets or sets a value indicating if the GridGroupSplitterColumn will be part of the frozen columns count in grid

C#
public virtual bool CountGroupSplitterColumnAsFrozen { get; set; }
Property Value:

true, if the GridGroupAplitterColumn will be part of the frozen columns count, otherwise false. The default value is true.

C#
public virtual bool EnableColumnClientFreeze { get; set; }
C#
public virtual bool EnableNextPrevFrozenColumns { get; set; }

Gets or sets a value indicating whether Telerik RadGrid will change the pages when you scroll using the grid scroller. This in terms of Telerik RadGrid is called Virtual Scrolling.

C#
public virtual bool EnableVirtualScrollPaging { get; set; }
Property Value:

true, if virtual scrolling is enabled, otherwise false (the default value).

This property is particularly useful when working with huge datasets. Using the grid scrollbar, you can change the grid pages just like in Microsoft Word®. When scrolling with the virtual scrollbar, Telerik RadGrid uses AJAX requests to change the pages, i.e. no Postbacks are performed. The overall behavior is smooth and with no flicker.

Note that you should have AJAX enabled for Telerik RadGrid by setting the EnableAJAX="True".

To enable static columns, set the ClientSettings.Scrolling.FrozenColumnsCount property to a value greater than 0. The value of FrozenColumnsCount specifies the number of columns (starting with the leftmost column) that do not scroll when the of the user scrolls the grid horizontally, using the horizontal scroll bar. This feature is functional even when in hierarchical grids and grids that support grouping.

C#
public virtual int FrozenColumnsCount { get; set; }
Property Value:

The frozen columns count.

Gets or sets a value indicating whether Telerik RadGrid will keep the scroll position during postbacks.

C#
public virtual bool SaveScrollPosition { get; set; }
Property Value:

true (the default value), if Telerik RadGrid keeps the scroll position on postback, otherwise false .

This property is meaningful only when used in conjunction with AllowScroll set to true.

Gets or sets the width of the scrollbar for the grid.

C#
[Browsable(false)]
public virtual Unit ScrollBarWidth { get; set; }

Gets or sets a value specifying the grid height in pixels (px) beyond which the scrolling will be enabled.

C#
public virtual Unit ScrollHeight { get; set; }
Property Value:

the default value is 300px

Gets or sets the horizontal scroll position of the grid.

C#
[Browsable(false)]
public virtual string ScrollLeft { get; set; }

Gets or sets the vertical scroll position of the grid.

C#
[Browsable(false)]
public virtual string ScrollTop { get; set; }

Gets or sets a value indicating whether grid column headers will scroll as the rest of the grid items or will remain static (MS Excel ® style).

C#
public virtual bool UseStaticHeaders { get; set; }
Property Value:

true if headers remain static on scroll, otherwise false (the default value).

This property is meaningful only when used in conjunction with AllowScroll set to true.