Intersoft WebGrid Documentation
Persistence Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGridCustomEditor Class : Persistence Property






Specifies how the custom editor should be persisted. Valid values are GridLevel and DesignerLevel.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Determines the persistence level where the custom editor definition should be stored. This feature is obsolete in version 5.0.")>
<ISNet.Serialization.XmlSerializableAttribute()>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
<ISNet.Serialization.BinarySerializableAttribute()>
Public Property Persistence As PersistenceType
Visual Basic (Usage)Copy Code
Dim instance As WebGridCustomEditor
Dim value As PersistenceType
 
instance.Persistence = value
 
value = instance.Persistence
C# 
[DescriptionAttribute("Determines the persistence level where the custom editor definition should be stored. This feature is obsolete in version 5.0.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.BinarySerializableAttribute()]
public PersistenceType Persistence {get; set;}
Delphi 
public read-write property Persistence: PersistenceType; 
JScript 
DescriptionAttribute("Determines the persistence level where the custom editor definition should be stored. This feature is obsolete in version 5.0.")
ISNet.Serialization.XmlSerializableAttribute()
DefaultValueAttribute()
NotifyParentPropertyAttribute()
ISNet.Serialization.BinarySerializableAttribute()
public function get,set Persistence : PersistenceType
Managed Extensions for C++ 
[DescriptionAttribute("Determines the persistence level where the custom editor definition should be stored. This feature is obsolete in version 5.0.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.BinarySerializableAttribute()]
public: __property PersistenceType get_Persistence();
public: __property void set_Persistence( 
   PersistenceType value
);
C++/CLI 
[DescriptionAttribute("Determines the persistence level where the custom editor definition should be stored. This feature is obsolete in version 5.0.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.BinarySerializableAttribute()]
public:
property PersistenceType Persistence {
   PersistenceType get();
   void set (    PersistenceType value);
}

Remarks

When the default value is specified, which is GridLevel, the custom editor will be saved to the grid's instance and therefore will be applicable by that grid only and can't be seen in other grids. When DesignerLevel is specified, the custom editor definition will not be saved in the current webpage. Instead, it will be saved as a separate WCE file in a special CustomEditor folder. DesignerLevel's custom editors can be highly reusable and is visible throughout the entire project as well as in different projects.

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.