Intersoft WebGrid Documentation
PreviewRowSettings Class
Members  See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace : PreviewRowSettings Class






Provides settings to control the appearance and behavior of PreviewRow.

Object Model

PreviewRowSettings Class

Syntax

Visual Basic (Declaration) 
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<DescriptionAttribute()>
<SerializableAttribute()>
Public Class PreviewRowSettings 
   Inherits ISNet.WebUI.WebUIBaseClass
   Implements ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize 
Visual Basic (Usage)Copy Code
Dim instance As PreviewRowSettings
C# 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[DescriptionAttribute()]
[SerializableAttribute()]
public class PreviewRowSettings : ISNet.WebUI.WebUIBaseClass, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize  
Delphi 
public class PreviewRowSettings = class(ISNet.WebUI.WebUIBaseClass, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize)
JScript 
PersistenceModeAttribute(PersistenceMode.InnerProperty)
DescriptionAttribute()
SerializableAttribute()
public class PreviewRowSettings extends ISNet.WebUI.WebUIBaseClass implements ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize 
Managed Extensions for C++ 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[DescriptionAttribute()]
[SerializableAttribute()]
public __gc class PreviewRowSettings : public ISNet.WebUI.WebUIBaseClass, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize  
C++/CLI 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[DescriptionAttribute()]
[SerializableAttribute()]
public ref class PreviewRowSettings : public ISNet.WebUI.WebUIBaseClass, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize  

Remarks

WebGrid.NET v5.0 maintain the capability to display expandable preview row, much like in Outlook® auto preview mode. There are numerous settings related to preview row feature such as you can customize its style, change the expander image or have it expanded by default.

PreviewRow settings is attached per table and can be found in expandable PreviewRowSettings property. Note that it is possible to enable previewrow mode along with columnset mode, as well as with other existing features such as grouping, hierarchical and dozens of UI settings' combinations.

The list of PreviewRowSettings includes:

  • DataMember

    The data field that will be displayed in preview row. (required)

  • DefaultExpanded

    Specifies whether the preview row should be expanded by default. Default value: True

  • Expandable

    Specifies whether the preview row is expandable. When set to False, PreviewRow Expander Column will not appear and DefaultExpanded must be set to True. Default value is True.

  • Height

    Specifies the height of preview row. Default is Empty, means that the height will follow the text's length in preview row.

  • Indentation

    Specifies the space width between edge to previewrow's text. Default is 18px.

  • LoadOnDemand 

    Specifies whether the preview row should be loaded on demand.

 

Loading PreviewRow on Demand 

By default, WebGrid will render all preview row data at once on first load. This could cause several performance issues due to large output size, in the meantime user might not need to see all preview row's data at once.
In WebGrid.NET v5.0, you can configure WebGrid to skip row rendering in first load to reduce initial page output size. In this scenario, the preview row Expanded state is automatically set to false (Collapse). The preview row data will be retrieved through AJAX callback when you clicked on the expand icon. For more information, you can read Walkthrough: Configure WebGrid to load PreviewRow on demand.

Inheritance Hierarchy

System.Object
   ISNet.WebUI.WebUIBaseClass
      ISNet.WebUI.WebGrid.PreviewRowSettings

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.