Hello,Telerik
Really I meet trouble when I use Radtreeview on winform .
My business is the order including products,and product belongs to one category,category is tree-structure.
In the product Adding-Form,I select the category from the Category-tree is OK.
But When I want to modify the product detail information,How can I locate the current product Category-ID among the Category Tree..
such as
ProductDAO productDao = new ProductDAO();
Product product = productDao.GetProductDetailByProductId(productId);
tbxProductName.Text = product.ProductName;
tbxProductNote.Text = product.Remark;
tbxProductPrice.Value = product.Price.Value;
tbxProductQuantity.Value = (decimal)product.ProductCount.Value;
tbxUnit.Text = product.Unit;
ProductCategory proCategory = productDao.GetCategoryByCategoryId(product.ProductCategoryID.Value);
GotoSelectNode(proCategory.CategoryName);
My Category Tree is :
How to Implement the method of GotoSelectNode?
My Telerik version is 2010 q3
Thanks .Hope your reply.
Really I meet trouble when I use Radtreeview on winform .
My business is the order including products,and product belongs to one category,category is tree-structure.
In the product Adding-Form,I select the category from the Category-tree is OK.
But When I want to modify the product detail information,How can I locate the current product Category-ID among the Category Tree..
such as
ProductDAO productDao = new ProductDAO();
Product product = productDao.GetProductDetailByProductId(productId);
tbxProductName.Text = product.ProductName;
tbxProductNote.Text = product.Remark;
tbxProductPrice.Value = product.Price.Value;
tbxProductQuantity.Value = (decimal)product.ProductCount.Value;
tbxUnit.Text = product.Unit;
ProductCategory proCategory = productDao.GetCategoryByCategoryId(product.ProductCategoryID.Value);
GotoSelectNode(proCategory.CategoryName);
My Category Tree is :
private void InitPvProductCategoryTree()
{
ProductDAO proDao = new ProductDAO();
List<ProductCategory> categorys = proDao.GetAllCategoryList("");
tbxCategroy.DisplayMember = "CategoryName";
this.tbxCategroy.ValueMember = "ProductCategoryID";
this.tbxCategroy.ParentIDMember = "ParentID";
this.tbxCategroy.DataSource = categorys;
// this.tbxCategroy.DataMember = "Nodes";
}
How to Implement the method of GotoSelectNode?
My Telerik version is 2010 q3
Thanks .Hope your reply.