bug #1979: Selected IDs are not detected when the table page is visible.(cherry picked from commit 305747d4ede3f4f27b28f7ac1ba95501d31ef0e0)