Automatic scrolling in CGridview


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.

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

Thank you!