When I am trying to save data in toolbar tag as below
UltraToolbarsManager1.Toolbars(0).Tools(0).Tag = "Data"
I am getting error "Error encountered while serializing data into stream"
This error is occured on below code:
UltraToolbarsManager1.SaveAsXml(readMemoryStream,True)
Please suggest how to store data in UltraToolBarManager Tag without error.
Hello Priyanka,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Thanks for the provided code snippet.
Based on it I have tried to reproduce your issue but everything seems to work fine for me. I have tested my sample for both version 13.1.20131.2134 and 13.1.20131.1001. Could you please tell me which exact version of 13.1 are you using? Have you tried to run my sample with the latest version 13.1.20131.2134? What version of .NET Framework are you currently using? What is your operating system? Could you please send me the stack trace of the exception? All this information could help me to find out the reason why the issue you’ve got occurs. I am also sending you my sample created based on your code snippet. Please see attached zip. Please test my sample and let me know if the exception occurs with it. If I have missed something could you please modify it in order to reproduce your issue.
I am waiting for your feedback.
I am using Infragistics 13.1 version.
Error occured when i using MemoryStream as below code.
public Form1()
{
InitializeComponent();
this.ultraToolbarsManager1.Toolbars[0].Tools.Tag = "Data";
}
private void ultraButton1_Click(object sender, EventArgs e)
string xmlData = string.Empty;
using (MemoryStream readMemoryStream = new MemoryStream())
ultraToolbarsManager1.SaveAsXml(readMemoryStream,true);
readMemoryStream.Position = 0;
using (StreamReader streamReader = new StreamReader(readMemoryStream))
xmlData = streamReader.ReadToEnd();
Duplicate with http://ko.infragistics.com/community/forums/p/92208/455839.aspx#455839 Look for response in that thread.