使用tblsorter在tr中搜索精确值

时间:2016-10-21 05:53:18

标签: c# asp.net tablesorter exact-match

$('#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-3d',it-2d','it-vfx'等等...并允许' - '组合搜索部门时的符号

0 个答案:

没有答案