Hi , I have a treeview call tvAllCategory and it contain 2 header data field(id, App_SubCategory)
how do I retrieve back treeview Item and check if it has match with the item i key in? What I trying to do is to check the item delete in my gridview whether is exist in treeview or not, if didn't exist then need to add in back to the treeview.
below is my code
private void gvFavorite_Deleting(object sender, Telerik.Windows.Controls.GridViewDeletingEventArgs e)
{
itemsToBeDeleted = e.Items;
foreach (var itm in itemsToBeDeleted)
{
received null var mytvList = tvAllCategory.ItemsSource as MyFavorite.SilverLightService.tvCategoryList;
error here // mytvList.App_SubCategory.Contains(itm.ToString());
gvFavorite.Items.Remove(itm);
}
}
For your information below my tree hierarchy
HEADER(ID,App_SubCategory)
CHILD(ID,App_SubCategory,items)
how do I retrieve back treeview Item and check if it has match with the item i key in? What I trying to do is to check the item delete in my gridview whether is exist in treeview or not, if didn't exist then need to add in back to the treeview.
below is my code
private void gvFavorite_Deleting(object sender, Telerik.Windows.Controls.GridViewDeletingEventArgs e)
{
itemsToBeDeleted = e.Items;
foreach (var itm in itemsToBeDeleted)
{
received null var mytvList = tvAllCategory.ItemsSource as MyFavorite.SilverLightService.tvCategoryList;
error here // mytvList.App_SubCategory.Contains(itm.ToString());
gvFavorite.Items.Remove(itm);
}
}
For your information below my tree hierarchy
HEADER(ID,App_SubCategory)
CHILD(ID,App_SubCategory,items)