Automatic scrolling in CGridview

Hello!

I want the table to extend itself automatically when scrolling to the button of it same as Facebook when you scroll to the bottom of the when viewing a news feed.

Which changes I need to do to my code for that??

I found one reference but can not that much helpful to me.

http://www.yiiframework.com/forum/index.php/topic/15606-cgridview-automatically-extends-when-scrolling-to-the-end/

If anyone knows about some good idea or can explain above reference in detail.

Thank you!