EXT.NET( 二十)Combox联动

最近想做一个COMBOX选择后,另外一个SELECBOX加载不一样的内容

前台

<DirectEvents> <BeforeSelect OnEvent="cbtype_change" ></BeforeSelect> </DirectEvents>

后台

protected void cbtype_change(object sender, DirectEventArgs e) { if (this.cbtype.Text.Trim() == "1")//菜单叶子 { this.Store1.DataSource = new DAL.TreeDAO().GetMeunList(0); this.DataBind(); } else { this.Store1.DataSource = new DAL.TreeDAO().GetMeunList(1); this.DataBind(); } }


上图:

EXT.NET( 二十)Combox联动EXT.NET( 二十)Combox联动