-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Complete does not fire #749
Comments
Hi @briankitt! The I wonder if the timing might be slightly off... I hate to suggest this, but try wrapping the code inside the "updateComplete" function in a set timeout with 0 or 1 millisecond of delay and see if that helps (I'd like to know): $mainTable.bind("updateComplete", function (e, table) {
setTimeout(function(){
// do something
}, 0);
}); Note: I would avoid using |
The reason I put the 'alert' in there, was because I suspected it was not
'/Common/MBR_SearchPaging?PageNo={page}&PageSize={size}&FilterList={filterList:filterCol}&SortList={sortList:sortCol}', On Wed, Oct 22, 2014 at 5:35 PM, Rob G [email protected] wrote:
|
I am guessing that only the initial I would move the bind to updateComplete to before anything gets initialized, because if everything moves fast enough the event may not get bound until after the initial event. $(function(){
var $mainTable = $("#searchMbrTable");
$mainTable
.bind("updateComplete", function (e, table) {
// ...
})
.tablesorter({
// ...
})
.tablesorterPager({
// ...
});
}); Or, maybe that code might work better if it was binding to the Note: This code isn't necessary $("#searchMbrTable").each(function (index, element) { because |
I agree the 'foreach' isn't necessary in this case. I have 4 tables on my Moving it up does not help either. It still does not fire, but everything
'/Member/SearchPaging?PageNo={page}&PageSize={size}&FilterList={filterList:filterCol}&SortList={sortList:sortCol}', On Fri, Oct 24, 2014 at 11:02 AM, Rob G [email protected] wrote:
|
The The pager uses internal code to update the table, so switch the event binding to the |
The 'pagerComplete' does fire if I click something in the pager, but it On Fri, Oct 24, 2014 at 3:10 PM, Rob G [email protected] wrote:
|
There is also a |
I added this at line 443 in Javascript file jquery.tablesorter.pager.js. Thank you so much for your help!! On Fri, Oct 24, 2014 at 3:10 PM, Rob G [email protected] wrote:
|
You could also add a |
I have 2.17.8 installed, and I am running jquery 2.1.1. I've been playing with 'updatecomplete' but I can't seem to get it to work. I want to use 'updatecomplete' to turn graphics on and off. Currenty they are being done in my ajaxProcessing routine, but that is not going to work for my next mod, because I need the table built first.
The text was updated successfully, but these errors were encountered: