RadGrid for ASP.NET

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


Gets or sets a value, indicating the total number of items in the data source when custom paging is used. Thus the grid "understands" that the data source contains the specified number of records and it should fetch merely part of them at a time to execute requested operation.   

 

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

Syntax

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

Return Value

int, representing the total number of items in the datasource. The default value is 0.

Remarks

If you set a value that is greater than the actual number of items, RadGrid will show all available items plus empty pages (or whatever other content you set) for the items that exceed the actual number.

For example you have a data source with 9'000 items and you set VirtualItemCount to 10'000. If your page size is 1000, the grid will render 10 pages and the last page will be empty (or with NoRecordsTemplate if you're using such).

Requirements

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

See Also