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.
Duplicate with http://ko.infragistics.com/community/forums/p/92208/455839.aspx#455839 Look for response in that thread.
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();