$('#EmpDetailsGrid').on('filterEnd filterReset ', function () {
var c = this.config,
fr = c.filteredRows;
if (fr === 0) {
c.$table.find('.noData').remove();
c.$table.append([
// "remove-me" class added to rows that are not to be included
// in the cache when updating
'<tr class="noData remove-me" role="alert" aria-live="assertive">',
'<td style="background: #ccc;" colspan="' + c.columns + '" class="text-center">No Data Found</td>',
'</tr>'
].join(''));
} else {
c.$table.find('.noData').remove();
}
}).tablesorter({
theme: 'blue',
widgets: ['zebra', 'scroller', 'columns', 'stickyHeaders', 'filter'],
dateFormat: "mmddyyyy",
usNumberFormat: false,
sortReset: true,
sortRestart: true,
widthFixed: true,
widgetOptions: {
scroller_height: 200,
scroller_barWidth: 17,
scroller_jumpToHeader: true,
filter_childRows: true
},
headers: { 5: { filter: false, sorter: false } },
});
我正在搜索empdept
的是 'it' 并且只显示精确的 'it' 不显示 'it-3d'、it-2d'、'it-vfx' 等......并且在组合搜索时允许使用 '-' 符号