rstaib/jquery-bootgrid

Search returns Uncaught TypeError: Cannot read property 'search' of undefined

Open

#186 建立於 2015年8月6日

在 GitHub 查看
 (3 留言) (0 反應) (1 負責人)JavaScript (976 star) (375 fork)batch import
help wanted

描述

I am populating the table inside an ajax call

//ajax
...
success: function(data) {
    $("#my-table").bootgrid().bootgrid("append", data.data);
}
...

Everything works except search which returns the error

Uncaught TypeError: Cannot read property 'search' of undefined

line 180 is where it breaks

...
 column.converter.to(row[column.id]).search(searchPattern) > -1)
...

貢獻者指南

Search returns Uncaught TypeError: Cannot read property 'search' of undefined · rstaib/jquery-bootgrid#186 | Good First Issue