When adding the first row to a datatable through js the data-filter attribute from the added row is not detected. But if there is already data in the table at the time it is created that has a data-filter attribute on the column, when a new row is added through js the data-filter attribute is detected.
Example of the attribute being detected
Example of the attribute being ignored
Any idea how I can get the attribute to be detected if the first row is added through js?
Open the console to see that the filter is being picked up in the first case, but not the second.