用如下代码没有效果,也没有错误提示。
[code] public class ActivityListCst : AbstractMobileListPlugin
{
public override void AfterBindData(EventArgs e)
{
base.AfterBindData(e);
List
//带子菜单的
//添加一级菜单
BaseTabMenu tabMenuApproval = new BaseTabMenu();
tabMenuApproval.Id = "FApproval";
tabMenuApproval.Key = "FApproval";
tabMenuApproval.Caption = new LocaleValue("chuli");
tabMenuApproval.Value = "chuli";//此value属性已经过时,实际上可能被上行取代。
tabMenuApproval.Type = "view";//click表示此菜单就是直接点击的,如果是有子菜单的话,此处要设置成为view
_tabMenuList.Add(tabMenuApproval);
tabMenuApproval.sub_button = new List
BaseTabMenu subTabMenu = new BaseTabMenu();
subTabMenu.Id = "FSubtest1";
subTabMenu.Key = "FSubtest1";
subTabMenu.Caption = new LocaleValue("Ftitle");
subTabMenu.Value = "Ftitle";//此value属性已经过时,实际上可能被上行取代。
subTabMenu.Type = "click";
tabMenuApproval.sub_button.Add(subTabMenu);
string value = BaseMenuManager.ParseToString(_tabMenuList);
//this.View.GetControl("F_meg_TabMenuField").SetCustomPropertyValue("value", value);
//this.View.UpdateView("F_meg_TabMenuField");
this.View.GetControl("FList").SetCustomPropertyValue("TabMenuValue", value);
//this.View.Refresh()
}
......
[/code]
版本:6.1+PT108346
QQ:469126910
推荐阅读