fnDraw() doen't reset "sSearch" and "iDisplayLength" variables
fnDraw() doen't reset "sSearch" and "iDisplayLength" variables
diondu
Posts: 24Questions: 0Answers: 0
Hi,
I'm using AJAX and i'm trying to run oTable.fnDraw() but after the table is redrawn the table doesn't "reset" the sSearch and iDisplayLength variables. It only resets the Search and Display Length fields above the table.
The new table is loaded within the old sSearch an iDisplayLength paramters.
I tried to use oTable.fnFilter('') instead of fnDraw. It works reseting sSearch but the new table is still draw with the old iDisplayLength. For example: I load the table and then I change the "Display Length" from 10 (default) to 25. When I redraw the table the new table is drawn with 25 records even the DisplayLength Select Box show the default 10 records.
Is there a way to overcome this problem? Is this a DataTable bug?
Thanks.
I'm using AJAX and i'm trying to run oTable.fnDraw() but after the table is redrawn the table doesn't "reset" the sSearch and iDisplayLength variables. It only resets the Search and Display Length fields above the table.
The new table is loaded within the old sSearch an iDisplayLength paramters.
I tried to use oTable.fnFilter('') instead of fnDraw. It works reseting sSearch but the new table is still draw with the old iDisplayLength. For example: I load the table and then I change the "Display Length" from 10 (default) to 25. When I redraw the table the new table is drawn with 25 records even the DisplayLength Select Box show the default 10 records.
Is there a way to overcome this problem? Is this a DataTable bug?
Thanks.
This discussion has been closed.
Replies
Allan