Redraw Datatable after element rerender

Redraw Datatable after element rerender

Starz26Starz26 Posts: 38Questions: 1Answers: 0
edited November 2011 in General
Greetings,

I am using DT along with a visualforce page in salesforce. Within that page, after a user selects obtions, the table is rerendered. I believe salesforces uses ajax partial page refresh to do this.

When the underlying table is rerendered, how would I got about redrawing the table using the new data (html table on the page)......

I have tried fnRedraw to no avail....

Replies

  • Starz26Starz26 Posts: 38Questions: 1Answers: 0
    Ok, I was rerendering the wrong item. After actually rerendering the correct table the Datatables successfully displays the new data....

    My issue now is that the filter applied:

    tTable.fnFilter(str,4,true,false,false );

    for the original table no longer works. Also, typing data in the search box no longer works on the table after the table is rerendered...

    How can I have the table keep the filter settings and have the search box continue to work on the table after rerendering the html table?
  • Starz26Starz26 Posts: 38Questions: 1Answers: 0
    It appears the fnFilter is working but on the original table and not the table with the new data. The "Showing x of x" at the bottom changes when the filters are applied but that appears to be based on the old data. For example it says "Showing 2 of 2 records" which is correct for the initial draw of the table but for the data currently being displayed it should be "Showing 0 of 0 records" as an example....
This discussion has been closed.