Yii X-Editable Not Working Inside Dynamically Updated Cgridview

I am using x-editable to use inline editing in CGridview.

http://x-editable.demopage.ru/index.php

I am using postgresql as the database. Initially the CGridview is empty. I am using CHtml:ajaxSubmitButton as forward and backward browse buttons for the CGridview. So on click of the button I am updating the CGridview.

But when the content is loaded inside CGridview, x-editable is not working. The anchor tag has only one attribute "rel". The attribute "data-pk" is not there, and if I click the link it is not becoming textfield.

Please help.