作者:荒原绿树fy | 来源:互联网 | 2023-07-01 10:51
追求效率,直接进入主题吧…..效果:前台代码 简析:Textfield:显示文本值valuefield:idparentfield:父类编码expand默认全部展开&n
追求效率,直接进入主题吧…..
效果:
前台代码
简析:
Textfield:显示文本值
valuefield:id
parentfield:父类编码
expand 默认全部展开
后台代码
需要添加Newtonsoft.Json.dll引用
添加一般处理程序 AjaxService.ashx
public voidProce***equest(HttpContext context)
{
context.Response.COntentType="text/plain";
string method =context.Request.GetRequestValueByParam("method");
if (method.ToLower() == "GetEventSource".ToLower())
{
GetEventSource(context);
}
}
public voidGetEventSource(HttpContext context)
{
DataTable dt = new DataTable();//获取你需要绑定的数据
context.Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(dt));//序列化
}
mini-treeselect具体属性方法说明:
参考网址:http://www.miniui.com/docs/api/index.html#ui=treeselect
附件:http://down.51cto.com/data/2365890