Completed
Last Updated: 06 May 2013 03:37 by ADMIN
ADMIN
Stefan
Created on: 06 May 2013 03:37
Category: Dock
Type: Bug Report
0
FIX. RadDock - the control falls in an invalid state when loading invalid xml file
To reproduce, just load an invalid XML file:
            if (File.Exists("userDockState.xml"))
            {
                try
                {
                    radDock1.LoadFromXml("userDockState.xml");
                }
                catch (XmlException)
                {
                    radDock1.LoadFromXml("defaultDockState.xml");
                }
            }

Workaround:
 if (File.Exists("userDockState.xml"))
            {
                try
                {
                    radDock1.LoadFromXml("userDockState.xml");
                }
                catch (XmlException)
                {
                    radDock1.EndTransactionBlock();
                    radDock1.LoadFromXml("defaultDockState.xml");
                }
            }
0 comments