Following some awesome support from this forum, I managed to get CStarRating rendered into a column within CGridView. However when the column is sorted I lose the stars and revert back to radio inputs. Is there re initialisation I can do within an afterInit event to bring back those twinkly stars?
Thank you for the reply. Would there be anything specific that needs to go in the function, at the moment all the jquery init stuff is being handled automagically by Yii.
Thank you, talby101. That worked for me - mostly. My stars are readonly and with your code, they were actual input fields after paging.
I couldn’t figure out how to pass the readOnly parameter in .rating(). I tried rating(\‘readOnly\’) and rating(’\readOnly\’, true) and was back to radio buttons.
What DID work for me to keep the "readOnly" aspect was to set the function default prior to calling .rating() without any paramters.