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 […]
Tag Archives: Yii CGridview
In my project, I have to hide the delete button from ‘CGridview’ If the record is not related to any other records or table and i have to check the record id, Is it possible or not to delete. Now i created one function ‘is_used()’ in model. This function check this record ‘ID’ is existed […]
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( […]
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 […]
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 […]