frozencolumns:[[
{field: ' Xh ', checkbox:true},
{
Field: "CZ", Title: "Operation", width:100, align: "center", formatter:function (value, row, index) {
Return ' <span onmouseover=mouseover (This) onmouseout=mouseout (this) onclick=editstu (' + row.xh + ') class= "Link" > Modify </span> '
}
}
]],
Columns: [[
{field: ' Xjh ', title: ' Student Number ', width:105, align: ' center ', sortable:true},
{field: "XM", Title: "Name", width:105, align: "center", Sortable:true},
{field: "XB", Title: "Gender", width:105, align: "center"},
{field: "Csrq", Title: "Date of birth", width:105, align: "center"},
{field: "BJMC", Title: "Class name", width:105, align: "center"},
{field: "Mz", Title: "National", width:105, align: "center"},
{field: "Zzmm", Title: "Political Face", width:105, align: "center"},
{field: "Jdfs", Title: "Way of studying", width:105, align: "center"},
{field: "Jgm", Title: "Birthplace", width:100, align: "center"},
{field: "Sfzxm", Title: "In school State", Hidden:true},
]]
JS Intercept string
for (var i = 0; i < ids.length; i++) {
if (ids[i] = = "QX") continue;
Varcolumns + = ' {' field ': ' + ids[i] + ', ' title ': ' + textsarray[i ' + ', ' Align ': ' Center ', ' width ': 105}, ';
}
Varcolumns=varcolumns.substr (0,varcolumns.length-1); Remove the last comma
Get the number of jagged array dimensions
int[][] Jaggedarray = new int[][] {
New int[] {1,3,5,7,9}, new int[] {0,2},
New int[] {5,11, n}, new int[] {3,5,7,10, 32}};
Jaggedarray. Getlonglength (0)
jquery DataGrid Add frozen columns, etc.