Serializes RadGridView and RadVirtualGrid layouts with grid-specific handling for column sizing, legacy descriptors, and filter values.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewLayoutSerializer : ComponentXmlSerializer
Inheritance: objectComponentXmlSerializerGridViewLayoutSerializer
Inherited Members
Constructors
Initializes a new instance of the GridViewLayoutSerializer class.
public GridViewLayoutSerializer(ComponentXmlSerializationInfo componentSerializationInfo)
The component serialization info.
Methods
Gets a property value for serialization, reversing DPI scaling for a column's width constraints when its owning grid is available.
protected override object GetPropertyValue(PropertyDescriptor property, object propertyOwner)
The property being serialized.
propertyOwnerobjectThe object that owns the property.
Returns:The property value, with Width, MinWidth, and MaxWidth converted to logical units when applicable.
Overrides:
Matches the instance of the element by an attribute value and then deserializes its properties. If the instance is not found in existingInstancesToMatch, new instance of type instanceType will be created and added to existingInstancesToMatch list.
protected override object MatchObjectElement(XmlReader reader, object parent, PropertyDescriptor parentProperty, IList toRead, string propertyToMatch, IList existingInstancesToMatch, out int foundAtIndex)
the list with existing instances
foundAtIndexintindex of the element if found in existingInstanceToMatch
Returns:Overrides:
Override to provide custom processing of collection being deserialized
protected override bool ProcessListOverride(XmlReader reader, object listOwner, PropertyDescriptor ownerProperty, IList list)
True if the list does not require further processing by the deserializer, False to use the default deserialization
Overrides:
Processes the property.
protected override bool ProcessProperty(PropertyDescriptor property)
The property.
Returns:Overrides:
Preserves empty filter values when reading layout XML, using null for nullable date and time filter values.
protected override bool ProcessReaderAttribute(XmlReader reader, object parentObject, object toRead, PropertyDescriptor property)
The XML reader positioned on the serialized property value.
parentObjectobjectThe parent object being deserialized.
toReadobjectThe object that owns the property.
propertyPropertyDescriptorThe descriptor for the property being read.
Returns:true when an empty filter value is assigned here; otherwise, false to let the base serializer process it.
Overrides:
Deserializes a specified property of an object
protected override void ReadElementInObject(XmlReader reader, PropertyDescriptor property, object toRead)
Xml reader, positioned on the element corresponding to the property to deserialize
propertyPropertyDescriptorProperty descriptor of the property to deserialize
toReadobjectObject that owns the property to deserialize
Overrides: