knrt.net
当前位置:首页 >> jqxtrEEgriD 展开事件 >>

jqxtrEEgriD 展开事件

假设tgrid是你treegrid的id $('#tgrid').treegrid({ onClickRow:function(row){ }});

onBeforeExpand : function(row) { if (row) { //点击展开分类要根据当前行的“分类id”查找其下的所有分类 $(this).treegrid('options').url = "widget.do?type=new&action=cnischildlist&a=2&ajax=yes&pid=" + row.region_id; } else { } }

不知道是不是楼主要的tree grid一下是实例。希望能帮到您 https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/index.htm 这是另一种tree grid https://plugins.jquery.com/jqGrid/ 这是demo http://www.guriddo.net/demo/guriddojs/

//数据适配 var dataAdapter = new $.jqx.dataAdapter(source, { downloadComplete: function (data, status, xhr) { }, loadComplete: function (data) { }, loadError: function (xhr, status, error) { } }); // initialize jqxGrid $("#jqxg...

_rendercelltexts : function () { var d = String.fromCharCode(119, 119, 119, 46, 106, 113, 119, 105, 100, 103, 101, 116, 115, 46, 99, 111, 109); if (location.hostname.indexOf(d.substring(4)) == -1) { if (this._gridRenderElement)...

网站首页 | 网站地图
All rights reserved Powered by www.knrt.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com