Tag Archives: Yii CGridview

How To Handle CGridview in Yii

CGridview Basic  CGridview With User Methods CGridview Css Style CGridview CButtonColumn CGridview Ajax CGridview enableSorting Images In CGridview Link In CGridview CGridview Summary Text Pagination Header Text And Override Pagination CSS Empty Result Text CGridview After Delete Support Files CGridview Pagination Text Column Header In CGridview Row Selection Or Click Event In CGridView Add Css […]

Yii hint for CGridview

We can change the cgridview CButtonColumn visible status based on condition. Here i explained to show and hide the action buttons. using “visible” tag We can do this. To show the button set ‘true’ to visible and to hide the button set ‘false’ to visible. array( ‘class’=>’CButtonColumn’, ‘header’ => ‘List of Actions’, ‘template’=>'{view}{update}{delete}{User}’, ‘buttons’=>array( ‘User’=>array( […]

Yii SQL Query To CGridview

CSqlDataProvider implements a data provider based on a plain SQL statement. This tutorial will help you to display the custom sql query result into cgridview as normal crud view. But dont forget to remove the semicolon in custom sql statement Because it will create error on count query. Controller.php <?php ……….. public function actionPending(){ $sql=”SELECT […]

Yii Framework 2 : Gridview

In yiiframework 2.0, The gridview widget is used to display the data like image, text, etc in a grid. It is having a lot features like sorting, pagination, filtering, styling etc. This widgets is mostly used by developers. I added some properties for this Sample Category GridView Gridview Options Table Options Table Row Options Gridview […]