Thanks Paul! I was beginning to feel like the step child here!

I was able to work around the issue by setting the "bStateSave" parameter to
"true" in my JSONObject controlling my dataTable Options... This causes a
cookie to save the state of my datatable after any updates
(http://www.datatables.net/ref#bStateSave) 

However, my original plan of attack is still not working and I know this
issue is going to come up again.

I believe you are right that I am using .addInitializerCall unnecessarily. I
was able to make a call using 
javaScriptSupport.addScript("fnStandingRedraw();"); just like you suggested
however now I think the problem is in how I am setting up my javascript
file. 


Here is the JavaScript that I placed in a separate file:

$.fn.dataTableExt.oApi.fnStandingRedraw = function(oSettings) {
    //redraw to account for filtering and sorting
    // concept here is that (for client side) there is a row got inserted at
the end (for an add) 
    // or when a record was modified it could be in the middle of the table
    // that is probably not supposed to be there - due to filtering /
sorting
    // so we need to re process filtering and sorting
    // BUT - if it is server side - then this should be handled by the
server - so skip this step
    if(oSettings.oFeatures.bServerSide === false){
        var before = oSettings._iDisplayStart;
        oSettings.oApi._fnReDraw(oSettings);
        //iDisplayStart has been reset to zero - so lets change it back
        oSettings._iDisplayStart = before;
        oSettings.oApi._fnCalculateEnd(oSettings);
    }
     
    //draw the 'current' page
    oSettings.oApi._fnDraw(oSettings);
};


Not really a js guy (yet) so I'm wondering if there is some sort of Tapestry
namespace that I should be to or something else i'm not seeing

Thanks!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Calling-fnStandingRedraw-to-retain-the-current-pagination-settings-using-javaScriptSupport-addInitial-tp5615771p5618718.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to