I am trying to implement a custom search function for jqgrid in which it can search for table cells with have html content. Please refer below example
https://jsfiddle.net/ukyde000/1/
In the fiddle there are two columns which have div elements inside the table cell 'client' and 'notes'. I am using html cells because i like the cells to have styles and some cells are hyperlinks with anchor tags. In this example i have not changed all column cells to have html content but the actual grid i use has all cells in html div tags. I was able to implement a custom sort function by returning the innerText value of the cells. I am now trying to implement similar functionality for search where the search function can check for text content of the cell to match data.
<td><div><span>text/number/date</span></div></td>
sorttype: funtion(cell) { return $(cell)[0].innerText;}
Edit : Using jqgrid 4.7.0