bDeferRender and searching

bDeferRender and searching

Rac00nRac00n Posts: 2Questions: 1Answers: 0

Hello at all.

I'm using Datatables to dsplay a growing amount of data which is working fine. I'm using the bDeferRender option so I won't have performance problems. The data is grabbed from an array.

Upon creation of the datatable, I'm modifying the content via: fnCreatedRow

Unfortunately I have the problem now that the search is not working on the modifed data but on the original one.

Any idea on that one?

Thanks in advance.

Answers

  • Sameeksha123Sameeksha123 Posts: 5Questions: 1Answers: 0

    upon creation of row. You will need to reload the table with the call from database to get the new data. Then the default search works it. I faced the similar issue and had this work around. Let me know if you get any other solution

  • allanallan Posts: 63,356Questions: 1Answers: 10,444 Site admin

    Are you modifying the data using fnCreatedRow? If so, that's the issue. Use columns.render to handle orthogonal data.

    Allan

  • Rac00nRac00n Posts: 2Questions: 1Answers: 0

    Thanks for your replies.

    @Sameeksha123
    I might be stupid to ask but how am I able to reload the datatable?

    @allan
    Yes I am, but unfortunately I'm not able to use column.render for my purpose :(
    Please see pastebin for it: http://pastebin.com/csNUMi1b

This discussion has been closed.