Completed
Last Updated: 20 Jul 2016 09:13 by ADMIN
ADMIN
Hristo
Created on: 07 Jul 2016 16:06
Category: PivotGrid
Type: Bug Report
0
FIX. RadPivotGrid - the SaveLoadLayout string overload does not use the RadPivotGrid`s XmlSerializationInfo instance
Workaround: 
public class MyRadPivotGrid : RadPivotGrid
{
    public override void SaveLayout(string fileName)
    {
        ComponentXmlSerializer ser = new ComponentXmlSerializer(this.XmlSerializationInfo);

        using (XmlTextWriter writer = new XmlTextWriter(fileName, Encoding.UTF8))
        {
            writer.Formatting = Formatting.Indented;
            writer.WriteStartElement("RadPivotGrid");
            ser.WriteObjectElement(writer, this);
        }
    }
}
0 comments