My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.