在我的代码中,
MenuList = new Telerik.Web.UI.RadMenuItem();
MenuChild1 = new Telerik.Web.UI.RadMenuItem();
MenuList.Text = "Orders";
MenuList.Value = "Orders";
RadMenu_Control.Items.Add(MenuList);
if (genRights.Find(delegate(UserRights u) { return u.RIGHT_NAME == "Group Master"; }) != null`enter code here`)
{
CategoryList = new Telerik.Web.UI.RadMenuItem();
CategoryList.Text = "Purchase Order";
CategoryList.Value = "order";
MenuList.Items.Add(CategoryList);
//MenuChild1 = new Telerik.Web.UI.RadMenuItem();
//MenuChild1.Text = "PURCHASE ORDER";
//MenuChild1.Value = "order";
//MenuList.Items.Add(MenuChild1);
}
else
{
}
现在我想禁用点击“订单”而不是“采购订单”,因为它是子项目。