Intersoft WebGrid Documentation
VirtualLoadMode Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > LayoutSet Class : VirtualLoadMode Property






Specifies the WebGrid's load mechanism to retrieve and render data.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
<DescriptionAttribute()>
Public Property VirtualLoadMode As VirtualLoadMode
Visual Basic (Usage)Copy Code
Dim instance As LayoutSet
Dim value As VirtualLoadMode
 
instance.VirtualLoadMode = value
 
value = instance.VirtualLoadMode
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute()]
public VirtualLoadMode VirtualLoadMode {get; set;}
Delphi 
public read-write property VirtualLoadMode: VirtualLoadMode; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
NotifyParentPropertyAttribute()
DefaultValueAttribute()
DescriptionAttribute()
public function get,set VirtualLoadMode : VirtualLoadMode
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute()]
public: __property VirtualLoadMode get_VirtualLoadMode();
public: __property void set_VirtualLoadMode( 
   VirtualLoadMode value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute()]
public:
property VirtualLoadMode VirtualLoadMode {
   VirtualLoadMode get();
   void set (    VirtualLoadMode value);
}

Remarks

One of the WebGrid.NET’s key innovations is its ability to fetch more data as you scrolled down to the bottom edge of grid. In WebGrid.NET Enterprise 5.0 users are allowed to set the VirtualLoadMode, which is appropriate for the enterprise-class application scenarios where the size of database is relatively large and getting larger as the business grows. There are three modes of VirtualLoadMode: Default, LargeData, and Custom.

On the default mode, WebGrid will retrieve and render a number of rows specified in VirtualPageSize. While on the LargeData mode, all rows in VirtualPageSize will be rendered by the the grid. This mode is appropriate for large-size data.

On the custom mode, developers need to specify the data fetching logic. Sorting, editing and all-other data aware functionalities can work in this mode, except Grouping since that Grouping requires all rows to be loaded. 

Using LargeData option in the VirtualLoadMode property restricts the users to export ALL the data. Only a certain batch of data which has been retrieved by users, will be exported to the medium. Therefore, in order to export ALL data, the VirtualLoadMode property needs to be configured to Default option temporarily and invokes the RebindDataSource() method.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

LayoutSet Class
LayoutSet Members

Concepts

VirtualLoad Paging Mode

Tasks

How-to: Implement custom Virtual Load

©2012 Intersoft Solutions Corp. All Rights Reserved.