RadGrid for ASP.NET

RadGrid Send comments on this topic.
AllowCustomPaging Property
See Also 
Telerik.WebControls Namespace > RadGrid Class : AllowCustomPaging Property


Gets or sets a value indicating whether custom paging should be performed instead of the integrated automatic paging.   

 

Namespace: Telerik.WebControls
Assembly: RadGrid (in RadGrid.dll)

Syntax

Visual Basic (Declaration) 
Public Overridable Property AllowCustomPaging As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RadGrid
Dim value As Boolean
 
instance.AllowCustomPaging = value
 
value = instance.AllowCustomPaging
C# 
public virtual bool AllowCustomPaging {get; set;}

Return Value

true, if custom paging is allowed; otherwise false. The default is false.

Remarks

This online example demonstrates an approach to implementing custom paging with Telerik RadGrid. The simulated "DataLayer" wraps the logic of extracting records for only the specified page and deleting records. Telerik RadGrid maintains the pager buttons, changing of pager and other presentation specific features.

Another available option for custom paging support is represented in the how-to section.

Note: There is no universal mechanism for grouping when custom paging is allowed. The reason for this is that with the custom paging mechanism you fetch only part of the whole information from the grid datasource. Thus, when you trigger the grouping event the grid is restricted from operating with the whole available source data and is not able to group the items accurately. Furthermore, the aggregate functions as Count, Sum, etc. (covering operations with the whole set of grid items) will return incorrect results.

A workaround solution for you could be to use hierarchy in the grid instead of grouping to single out the grid items logically and visually according to custom criteria. Thus you will be able to use custom paging without further limitations.

Another approach is to build your own complex SQL statements which to get the whole available data from the grid datasource and then group the items in the grid with custom code logic.

Finally, you can use standard paging instead of custom paging to ensure the consistency of the data on grouping.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also