mygod
|
|
« on: March 20, 2017, 01:37:48 AM » |
|
sorry ,I Only know a little bit of English, then I used google translation。 grid = $('#dg').datagrid({ rownumbers: true, singleSelect: true, autoRowHeight: true, pagination: true, idField: 'ID', fit: true, url: contextPath + '/service/yw/Handler_user.ashx', pageSize: 15, pageList: [15, 20, 30], fitColumns: true, columns: [[ { field: 'IDENTITYCARD', title: '员工编号', width: 100 }, { field: 'action', title: '操作', width: 150, align: 'center', formatter: check_action } ]] }); function pagerFilter(data) { return '<a href="#" id="first" class="easyui-linkbutton" >modi</a> '; }
The easyui-linkbutton style No applied。
It Can be achieved by the following method: onLoadSuccess(data) { $('#first').linkbutton(); }
Now i used the next code :
var datagrid_render = $.fn.datagrid.defaults.view.render; $.extend($.fn.datagrid.defaults.view, { render: function (target, container, frozen) { datagrid_render.call(this, target, container, frozen); var ddd = $(target).find("td[field]"); $.parser.parse(ddd); } });
Whether there are plans to directly support this feature?
|