1. I wonder if he is alright.
2. I wonder that he is alright.
I want to know 2 is also grammatical.
(But the second interpretation is less likely in the case mentioned in the title. 'I wonder that it's grammatical' could be said of a student whose grammar is usually wrong, who suddenly says something grammatical! )