$ (Function () {$ ('# datalist '). dataGrid ({Title: 'Three-position personnel statistics', iconcls: 'icon-save', singleselect: True, width: 700, height: 350, nowrap: false, fit: True, striped: false, URL: '/provider/handlerqualificationsp. ashx? Method = threet & dept_id = 000001 ', remotesort: false, idfield: 'dicqualificationid', columns: [[{field: 'title1', Title: 'certification name', width: 120, align: 'center'}, {field: 'title2', Title: 'qualification certificate name', width: 120, align: 'center'}, {field: 'zgzname', Title: 'qualification certificate name', width: 120, align: 'center'}, {field: 'rowdata1 ', Title: 'qualification certificate name', width: 120, align: 'center'}], rownumbers: True, onloadsuccess: function (rowdata) {var merges2 = [{field: 'title1', index: 0, colspan: 2, rowspan: 2}, {index: 2, field: 'title1', rowspan: 4}, {index: 7, field: 'title1', rowspan: 9}, {index: 2, field: 'title2', rowspan: 2}, {index: 4, field: 'title2', rowspan: 2}]; for (VAR I = 0; I <merges2.length; I ++) $ ('# datalist '). dataGrid ('merecells ', {index: merges2 [I]. index, field: merges2 [I]. field, colspan: merges2 [I]. colspan, rowspan: merges2 [I]. rowspan}) ;}, toolbar: [{ID: 'btnadd', text: 'add', iconcls: 'icon-add', Handler: function () {dicadd () }}, '-', {ID: 'btncut ', text: 'modify', iconcls: 'icon-cut', Handler: function () {dicedit () }}, '-', {ID: 'btnsave', text: 'delete', iconcls: 'icon-delete', Handler: function () {deldata () ;}}]}) ;});