DataTables alphabet search affects table in partial view too
DataTables alphabet search affects table in partial view too

I am unable to show you what happens since my code is for our intranet and cannot be seen by the outside world. In any case, I have a list of people in a datatable with the alpha search so the list can be narrowed down. Upon clicking the persons name, I bring up a partial view giving details for the person. Within this partial is another datatable of another list of people that can be assigned to the first person. However, every time I bring up the partial view the search function is activated for that additional table, narrowing down the second list. How do I get around this?
Answers
This function is in the main view and gets called when I show the partial view too:
$.fn.dataTable.ext.search.push(function (settings, searchData) {
if (!_alphabetSearch) {
return true;
}
if (searchData[1].charAt(0) === _alphabetSearch) {
return true;
}
return false;
});