gridGroupingControl.WriteXmlSchema - exeption
Hi,
XmlWriter writer = XmlWriter.Create(Application.LocalUserAppDataPath + "\\tempXMLMaster"); gridGroupingControl1.WriteXmlSchema(writer);
At implementation of the last line of this code I get exeption:
"There was an error generating the XML document."
Stack Trace:
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o)
at Syncfusion.Windows.Forms.Grid.Grouping.GridEngine.WriteXml(XmlWriter xw)
at Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl.WriteXmlSchema(XmlWriter xw)
at Pdu.Presentation.Smartparts.ManualMatchMaker.View.MatchMakerControl.SaveConfig() in c:\CVSHOME\medassets\src\pdu\Presentation\Perspective Manager\Smartparts.ManualMatchMaker\Views\MatchMakerControl.cs:line 545
at Pdu.Presentation.Smartparts.ManualMatchMaker.View.MatchMakerControl.tableLayoutPanel1_Leave(Object sender, EventArgs e) in c:\CVSHOME\medassets\src\pdu\Presentation\Perspective Manager\Smartparts.ManualMatchMaker\Views\MatchMakerControl.cs:line 981
at System.Windows.Forms.Control.OnLeave(EventArgs e)
at System.Windows.Forms.Control.NotifyLeave()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
at System.Windows.Forms.ContainerControl.AssignActiveControlInternal(Control value)
at System.Windows.Forms.ContainerControl.ActivateControlInternal(Control control, Boolean originator)
at System.Windows.Forms.ContainerControl.SetActiveControlInternal(Control value)
at System.Windows.Forms.ContainerControl.AfterControlRemoved(Control control, Control oldParent)
at System.Windows.Forms.Form.AfterControlRemoved(Control control, Control oldParent)
at System.Windows.Forms.Control.ControlCollection.Remove(Control value)
at System.Windows.Forms.MdiClient.ControlCollection.Remove(Control value)
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.Windows.Forms.Form.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Рow I to get such functionality me?
Regards, Yuriy.
XmlWriter writer = XmlWriter.Create(Application.LocalUserAppDataPath + "\\tempXMLMaster"); gridGroupingControl1.WriteXmlSchema(writer);
At implementation of the last line of this code I get exeption:
"There was an error generating the XML document."
Stack Trace:
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o)
at Syncfusion.Windows.Forms.Grid.Grouping.GridEngine.WriteXml(XmlWriter xw)
at Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl.WriteXmlSchema(XmlWriter xw)
at Pdu.Presentation.Smartparts.ManualMatchMaker.View.MatchMakerControl.SaveConfig() in c:\CVSHOME\medassets\src\pdu\Presentation\Perspective Manager\Smartparts.ManualMatchMaker\Views\MatchMakerControl.cs:line 545
at Pdu.Presentation.Smartparts.ManualMatchMaker.View.MatchMakerControl.tableLayoutPanel1_Leave(Object sender, EventArgs e) in c:\CVSHOME\medassets\src\pdu\Presentation\Perspective Manager\Smartparts.ManualMatchMaker\Views\MatchMakerControl.cs:line 981
at System.Windows.Forms.Control.OnLeave(EventArgs e)
at System.Windows.Forms.Control.NotifyLeave()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
at System.Windows.Forms.ContainerControl.AssignActiveControlInternal(Control value)
at System.Windows.Forms.ContainerControl.ActivateControlInternal(Control control, Boolean originator)
at System.Windows.Forms.ContainerControl.SetActiveControlInternal(Control value)
at System.Windows.Forms.ContainerControl.AfterControlRemoved(Control control, Control oldParent)
at System.Windows.Forms.Form.AfterControlRemoved(Control control, Control oldParent)
at System.Windows.Forms.Control.ControlCollection.Remove(Control value)
at System.Windows.Forms.MdiClient.ControlCollection.Remove(Control value)
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.Windows.Forms.Form.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Рow I to get such functionality me?
Regards, Yuriy.
SIGN IN To post a reply.
3 Replies
AD
Administrator
Syncfusion Team
September 1, 2006 05:52 AM UTC
Hi Yuriy,
The CategoryView browser sample shows you how to serialize and deserialize the grids schema information using an Xml serialization. Please refer to it for more details. Is it possible for you to modify the sample to your settings to reproduce the issue?
Sample Path : [InstalDrive]:\Program Files\Syncfusion\Essential Studio\4.3.0.0\Windows\Grid.Grouping.Windows\Samples\CategoryView
Thanks for your patience.
Regards,
Haneef
The CategoryView browser sample shows you how to serialize and deserialize the grids schema information using an Xml serialization. Please refer to it for more details. Is it possible for you to modify the sample to your settings to reproduce the issue?
Sample Path : [InstalDrive]:\Program Files\Syncfusion\Essential Studio\4.3.0.0\Windows\Grid.Grouping.Windows\Samples\CategoryView
Thanks for your patience.
Regards,
Haneef
YS
Yuriy Stasiv
September 1, 2006 08:49 AM UTC
Hi Haneef,
I got tighter an error using Your(Syncfusion) example, trying to save XMLShema. Example of attached...
I got tighter an error using Your(Syncfusion) example, trying to save XMLShema. Example of attached...
ResizableRows_TestSaveXMLShema(Exeption).zip
AD
Administrator
Syncfusion Team
September 1, 2006 10:56 AM UTC
Hi Yuriy,
Sorry for the inconvenience caused.
This is a known issue and has been reported in the following link.
http://www.syncfusion.com/support/issues/grid/Default.aspx?ToDo=view&questId=2348.
You can view the status of the bug fix at the above link. We will try our very best to address the same at the earliest.
Best Regards,
Haneef.
Sorry for the inconvenience caused.
This is a known issue and has been reported in the following link.
http://www.syncfusion.com/support/issues/grid/Default.aspx?ToDo=view&questId=2348.
You can view the status of the bug fix at the above link. We will try our very best to address the same at the earliest.
Best Regards,
Haneef.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
YS Yuriy Stasiv
- Aug 31, 2006 05:15 PM UTC
- Sep 1, 2006 10:56 AM UTC