jQuery(...).yiiGridView is not a function
I found the issue.
Actually the problem was, somehow i got jquery included 2 times in the page - the 2nd time in the footer, that is why I did't find our earlier.
Jquery needs to be only 1 time in the page, and it needs to be in the header.