Reset old Rows when infinite scroll is on (server processing - dynamic content)

Reset old Rows when infinite scroll is on (server processing - dynamic content)

cyberwarriorcyberwarrior Posts: 5Questions: 0Answers: 0
edited November 2012 in General
Hello,

EDIT>>>>Read the next Post to get more precise information
i m working on a datatable with a content coming from a server. No problem for loading at first, and to get additionnal content after some datatable event (filter...). The problem is that i try to use personal filters, outside the datatable. I already succeed to associate those new information with all datatable parameter thanks to this function:
[code]"fnServerParams": function(aoData){TblServerParams(aoData);}[/code] . I also use [code]oTable.fnDraw(true);[/code] to send data (personal filter and classic parameter of datatable).
So, the server receive the data. The problem is i want that the datatable reset all lines and all it's params before sending parameters. So, maybe the iDisplayStart parameter will be set to zero. I try everything without success. The fnDraw function seems to send all informations to server. but old lines are always in datatable, and so, the new one are just added after old lines, and the pagination don't refresh (show 20 lines instead of the 30 for instance).

If someone have any idea , thanks

Replies

  • cyberwarriorcyberwarrior Posts: 5Questions: 0Answers: 0
    edited November 2012
    i have additionnal information about the problem.

    i test [code]oTable.fnDeleteRow( 0 );[/code] in order to remove the first row of my datatable. And this doesn't succeed. The line is always there after, even after the redraw (fnDraw).

    But now, i discover that it is
    [code]
    "bScrollInfinite": true,
    "bScrollCollapse": true,
    [/code] which cause this. The Datatable rows always remain whatever the server return ONLY when the infinite scroll is on.

    Is there someone else who experiences this problem ?
    is there a way to remove the old rows on each server response when scroll Infinite is on ?

    RQ: i use the latest version of the datatable (1.9.4)
This discussion has been closed.