Adjust data type
[attrtable] Fix button checked state
The wrong button was checked, when the view mode was not changed with a button click but another event.