Click here to Skip to main content
15,914,447 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
In my application I used XamDataTree and sucessfully managed to show nodes and add menu. but I got little problem is that I when I right click on the tree a menu displayed and click on the menu should add a node to the XamDataTree .

my method is like this

m_DataUtil is Data provide for the tree. when loading tree
m_XamDataTree.ItemsSource = m_DataUtil.Data;



when click the menu
m_DataUtil.AddProduct(m_product);
 m_XamDataTree.UpdateLayout();

m_product is data shown in the tree.

however the UpdateLayout() , the tree did not show the node I suppose to add.
there are not much information on the internet about XamDataTree and Documentation is not enough (I think).

could anyone tried that and know what to do ?
Posted

This is a proprietary third-party product. Does http://www.infragistics.com[^] support you? The are supposed to support the customers.

—SA
 
Share this answer
 
Comments
Alimjan Yasin 12-Jul-11 23:08pm    
I don't know it takes how much time for they respond, so let me try to contact with them.
after tried many solution I find out what to do. look at the code;

m_DataUtil = null;
this.InitData();
m_XamDataTree.ItemsSource = m_DataUtil.Data;
m_XamDataTree.UpdateLayout();

set datasource class null, reload data and set ItemsSource ,then update UI.

this worked, hope this solution help someone who looking for same fucntionality
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900