Sorting Not Working on Dynamically Added Rows

Sorting Not Working on Dynamically Added Rows

Paulsen97Paulsen97 Posts: 1Questions: 0Answers: 0

Hi all,

Link to test case: [Not available currently – can provide if needed]
Debugger code (debug.datatables.net): ejipov
Error messages shown: No specific error, just unexpected behavior
Description of problem:
I’m using DataTables with jQuery to show a user list. It initializes fine and sorting works on load. But when I add new rows dynamically using row.add().draw(), those new rows don’t respond to column sorting like the original ones do.

I’ve double-checked that the added rows follow the same structure, and I’m calling .draw() after adding, but no luck. Anyone faced something similar?

Thanks in advance!

Replies

Sign In or Register to comment.