gwtchosen
gwtchosen copied to clipboard
server-side filtering docs
In the documentation for server side filtering, this line of code does not make sense to me (and removing it makes the code work) :
if (isShowing && initialized) {
return; // do nothing, keep the last results
}
initialized = true;
This will only display the initial query and won't react to typing (as does the demo !)
In my implementation, I simply have :
if (!isShowing) {
return;
}
so we won't hit the server unnecessary.