随笔分类 -  zTree

【三】zTree 异步加载 C# + ashx +DataTable
摘要:JS文件如下:varsetting={async:{//异步加载enable:true,url:getUrl},callback:{beforeExpand:beforeExpand,onAsyncSuccess:onAsyncSuccess,onAsyncError:onAsyncError}};functioncreateTree(){$.ajax({url:'Handler.ashx?action=GetProvince',//urlaction是方法的名称data:{id:"0"},type:'POST',dataType:" 阅读全文
posted @ 2012-08-10 11:12 秦岭过客 阅读(3486) 评论(0) 推荐(1)
【二】zTree checkbox
摘要:Chexkbox处理varsetting={check:{enable:true//chkboxType:{"Y":"","N":""}},data:{simpleData:{enable:true}}};functioncreateTree(){varzNodes;$.ajax({url:'Handler.ashx?action=GetModule',//urlaction是方法的名称data:{id:"11"},type:'POST',dataType:&qu 阅读全文
posted @ 2012-08-09 14:39 秦岭过客 阅读(18217) 评论(2) 推荐(4)
【一】zTree 同步加载(第一个例子)
摘要:C#zTree.csusingSystem;usingSystem.Collections.Generic;usingSystem.Data;usingSystem.Linq;usingSystem.Text;usingSystem.Web;///<summary>///zTree的摘要说明///</summary>publicclasszTree{#region构造函数publiczTree(){////TODO:在此处添加构造函数逻辑//}#endregionpublicstringGetModule(){stringsql="SELECTm.ID,m.N 阅读全文
posted @ 2012-08-08 16:53 秦岭过客 阅读(5937) 评论(0) 推荐(1)