Table: fix the bug of refresh method in table widget

Closes gh-6698
Table: Fix line length in columntoggle code
Table: Add columntoggle refresh test