rstaib/jquery-bootgrid

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

Open

#186 aperta il 6 ago 2015

Vedi su GitHub
 (3 commenti) (0 reazioni) (1 assegnatario)JavaScript (375 fork)batch import
help wanted

Metriche repository

Star
 (976 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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)
...

Guida contributor