Exclude Search Value from hidden dropdwon value
Exclude Search Value from hidden dropdwon value
prasenjitbarua
Posts: 7Questions: 3Answers: 0
My project in .Net Core. I have a Grid which has editable inline row. That's why I bind the editable dropdown for that which is hidden. Now when I search something, the search result populate from that hidden dropdown list also which is not I want. So I want to ignore Search result from hidden dropdown value.
here is my html:
<td class="CompanyName">
<span>@item.CompanyName</span>
<select name="ddlcompany" id="ddlcompany" class="CompanyList" asp-for="@item.CompanyId" asp-items="@item.CompanyList" style="display:none">
</select>
</td>
<td class="BusinessUnitName">
<span>@item.BusinessUnitName</span>
<select name="ddlbusinessunit" id="ddlbusinessunit" class="BusinessUnitList" asp-for="@item.BusinessUnitId" asp-items="@item.BusinessUnitList" style="display:none">
</select>
</td>
Here is my Jquery:
$(document).ready(function () {
$("#DepartmentTable").DataTable({
"pageLength": 5,
"lengthMenu": [5, 10, 25, 50],
"order": []
});
})
Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
Answers
Is this using Editor, or another mechanism to edit the table? Editor should deal with that automatically.
Colin
no I am not using Editor. Is it possible to solve without Editor?
Use Orthogonal data to specify what to search.
Kevin