Filter-search by row background color - Page 2

Filter-search by row background color

2»

Answers

  • colincolin Posts: 15,158Questions: 1Answers: 2,587

    Could you create a test demonstrating that, please.

  • mihalispmihalisp Posts: 127Questions: 22Answers: 0

    Well,i was a bit in a hurry,maybe the problem is not fixedheader finally.
    I am still experiencing the same problem.
    I mnaged to make it work at some point by removing pieces of code.
    I will let you know.

  • mihalispmihalisp Posts: 127Questions: 22Answers: 0

    Finally,i made it work!i have spent 4 days trying to find the solution.

    The only 'good' combination is using rowCreated(not rowCallback) and no deferRender.

    deferRender ruined it.
    Any thoughts ?

    When to use rowCreated vs rowCallback ?

    I think in the near future you should consider making some complex examples which will include many different functions-plugins-filters .

    Thank you.

  • kthorngrenkthorngren Posts: 20,348Questions: 26Answers: 4,776

    Glad you got it working.

    I agree the documentation for createdRow and rowCallback are not clear about which to use when. createdRow is executed once at initialization while rowCallback is called each draw. rowCallback is needed when the data can change. The rowCallback docs don't make it clear that only those rows on the current page will be processed.

    However the deferRender docs are clear that only the page displayed will be processed:

    As an example to help illustrate this, if you load a data set with 10,000 rows, but a paging display length of only 10 records, rather than create all 10,000 rows, when deferred rendering is enabled, DataTables will create only 10.

    Kevin

This discussion has been closed.