The two tables i used are GN_Developments and GN_Properties. these are foriegn key related.
In my first treeview i displayed all the developments and its properties vailable in database and in second treeview
i displayed all developments and its properties choosen by the user.
I want to drag items from first treeview to second view.
the code behind isLandlordDomainContext ctx = new LandlordDomainContext();
LandlordDomainContext ctx2 = new LandlordDomainContext();
treeView1.ItemsSource = ctx.GN_Developments;
treeView2.ItemsSource = ctx2.GN_Developments;
the domain service class query is
public IQueryable<GN_Developments> GetGN_Development(int DevID)
return this.ObjectContext.GN_Developments.Include("GN_Properties").Where(s =>s.DevelopmentID==DevID);
public IQueryable<GN_Developments> GetGN_Developement(int DevID)
return this.ObjectContext.GN_Developments.Include("GN_Properties").Where(s => s.DevelopmentID != DevID);
The problem is I am getting values binded sucessfully in the page as per my query. But I cannot drag/drop items.
I am not able to drag items from firt treeview and drop to second treeview
Moreover how can i save the items on save button click if the items are dragged and dropped My scenario is to drag items from first treeview to 2nd treeview and save it on button click.....