Intersoft WebGrid Documentation
ExpandSelfRefRow(Boolean) Method
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGridRow Class > ExpandSelfRefRow Method : ExpandSelfRefRow(Boolean) Method






isLoadOnDemand
Gets a boolean value indicating whether the child rows should be populated when LoadOnDemand is used.

Expand self referencing row and force the child rows to be filled and rendered eventhough LoadOnDemand is set to True.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub ExpandSelfRefRow( _
   ByVal isLoadOnDemand As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As WebGridRow
Dim isLoadOnDemand As Boolean
 
instance.ExpandSelfRefRow(isLoadOnDemand)
C# 
public void ExpandSelfRefRow( 
   bool isLoadOnDemand
)
Delphi 
public procedure ExpandSelfRefRow( 
    isLoadOnDemand: Boolean
); 
JScript 
public function ExpandSelfRefRow( 
   isLoadOnDemand : boolean
);
Managed Extensions for C++ 
public: void ExpandSelfRefRow( 
   bool isLoadOnDemand
) 
C++/CLI 
public:
void ExpandSelfRefRow( 
   bool isLoadOnDemand
) 

Parameters

isLoadOnDemand
Gets a boolean value indicating whether the child rows should be populated when LoadOnDemand is used.

Remarks

Normally when LoadOnDemand is set to True, the grid will not populate the child rows and hence the child rows would never be rendered. The child rows will be loaded on demand when users clicked on the Expand icon, which will executing developers code written in OnInitializeSelfReferenceDataSource event. However for some advanced scenarios, developers might want to preload the selfref's childrows in server side eventhough LoadOnDemand is set to True. Developers can now use this method to achieve this scenario. This method enables the best of both worlds, allowing specific child rows preloading while other rows will be loaded on demand only when users request it.

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.