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






Specifies whether the cached data source will always be used on first page load.

Syntax

Visual Basic (Declaration) 
<ISNet.PersistLayoutAttribute(False)>
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
<DescriptionAttribute("Specifies whether the cached data source will always be used on first page load.")>
<ISNet.Serialization.BinarySerializableAttribute()>
Public Property AlwaysUseCachedDataOnFirstLoad As Boolean
Visual Basic (Usage)Copy Code
Dim instance As LayoutSet
Dim value As Boolean
 
instance.AlwaysUseCachedDataOnFirstLoad = value
 
value = instance.AlwaysUseCachedDataOnFirstLoad
C# 
[ISNet.PersistLayoutAttribute(false)]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute("Specifies whether the cached data source will always be used on first page load.")]
[ISNet.Serialization.BinarySerializableAttribute()]
public bool AlwaysUseCachedDataOnFirstLoad {get; set;}
Delphi 
public read-write property AlwaysUseCachedDataOnFirstLoad: Boolean; 
JScript 
ISNet.PersistLayoutAttribute()
NotifyParentPropertyAttribute()
DefaultValueAttribute()
DescriptionAttribute("Specifies whether the cached data source will always be used on first page load.")
ISNet.Serialization.BinarySerializableAttribute()
public function get,set AlwaysUseCachedDataOnFirstLoad : boolean
Managed Extensions for C++ 
[ISNet.PersistLayoutAttribute(false)]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute("Specifies whether the cached data source will always be used on first page load.")]
[ISNet.Serialization.BinarySerializableAttribute()]
public: __property bool get_AlwaysUseCachedDataOnFirstLoad();
public: __property void set_AlwaysUseCachedDataOnFirstLoad( 
   bool value
);
C++/CLI 
[ISNet.PersistLayoutAttribute(false)]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute("Specifies whether the cached data source will always be used on first page load.")]
[ISNet.Serialization.BinarySerializableAttribute()]
public:
property bool AlwaysUseCachedDataOnFirstLoad {
   bool get();
   void set (    bool value);
}

Remarks

When set to True, InitializeDataSource event will not be fired even on first page load if the DataSource is still in cache. Set this property to True will improve the performance significantly and is highly recommended for page that display static/unconditional data, such as all customers data. For page that displays grid data based on a condition or criteria, it is best to set this property to False.

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

©2012 Intersoft Solutions Corp. All Rights Reserved.