Yii CButtonColumn Tutorials

Yii Gridview CButtonColumn

CButtonColumn used to renders one or more buttons in gridview columns. Basically cgridview column have three buttons. They are “view”, “update”, “delete” button and it have corresponding actions. We can change it using CButtonColumn properties.TemplateShow the button using template string using below format'template'=>'{view}{update}{delete}',We can add more buttons here.afterDeleteAfter deleted the row, We can do some action using afterDelete.deleteButtonImageUrlChange the delete button image url using deleteButtonImageUrldeleteButtonLabelChange the delete button label using […]... Read More »