Can anyone provide example for BeginUpdate and EndUpdate methods for UltraTree control to display big XML file in tree format.
Thanks in advance.
Prathap
Hello prathap_u,
You could read about the BeginUpdate and EndUpdate methods at http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.UltraWinTree.v11.1~Infragistics.Win.UltraWinTree.UltraTree~BeginUpdate.html
and http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.UltraWinTree.v11.1~Infragistics.Win.UltraWinTree.UltraTree~Endupdate.html
You could also use an approach like the following:
You could load the xml data into a dataset and then bind this dataset to the UltraTree.
DataSet myDS = new DataSet(); foreach (DataTable t in myDS.Tables) t.BeginLoadData(); myDS.ReadXml("C:\\file.xml"); foreach (DataTable t in myDS.Tables) t.EndLoadData(); ultraTree1.DataSource = myDS;
DataSet myDS = new DataSet();
foreach (DataTable t in myDS.Tables)
t.BeginLoadData();
myDS.ReadXml("C:\\file.xml");
t.EndLoadData();
ultraTree1.DataSource = myDS;
Please note, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well.
Please do not hesitate to contact us if you need any additional assistance.