Wiki

Articles tagged with "cgridview", sorted by viewsX
Displaying 1-10 of 65 result(s).

Using CButtonColumn to customize buttons in CGridView

Created 5 years ago by TrejderHow-tos18 comments – viewed 262,944 times – ( +100 ) – version 1.1
CGridView is a one of most flexible widgets in Yii and example its flexibility is CButtonColumn used to build buttons for steering model in each grid row. Here in this how-to we will explain ways user can customize CButtonColumn to flexibly fit it to its needs.

Searching and sorting by related model in CGridView

Created 4 years ago by Maciej Li┼╝ewskiTutorials86 comments – viewed 178,040 times – ( +126 ) – version 1.1
Lets say we have two models and relation between them:

CGridView: Render customized/complex datacolumns

Created 4 years ago by JobloTips13 comments – viewed 143,283 times – ( +73 ) – version 1.1
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

CGridView, CListView and CActiveDataProvider

Created 3 years ago by softarkTutorials22 comments – viewed 110,552 times – ( +46 ) – version 1.1
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Created 4 years ago by Gerhard LiebenbergTutorials20 comments – viewed 84,956 times – ( +28 / -1 ) – version 1.1
This wiki is a step-by-step example explaining how the controller, model and the view's CGridView work together. It explains simple things - as well as more complex things that you will anyway quickly have to know. So, even if you don't use dynamic gridviews, take a morning off and thoroughly work through this tutorial. It should save you lots of struggling.

Working with CGridView in Admin Panel

Created 3 years ago by vibhaJadwaniTutorials18 comments – viewed 75,298 times – ( +43 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

Using filters with CGridView and CArrayDataProvider

Created 4 years ago by marcovtwoutHow-tos33 comments – viewed 66,099 times – ( +22 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Update/delete model with CJuiDialog (works in CGridView)

Created 4 years ago by ifdatticTutorials6 comments – viewed 64,381 times – ( +15 ) – version 1.1
This is based on this article.

Using standard filters in CGridView custom fields

Created 5 years ago by GOshaHow-tos4 comments – viewed 59,788 times – ( +17 ) – version 1.1
In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.For example: We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0. So we do the usual thing:

Special $variables in CGridView and CListView

Created 4 years ago by Steve FriedlTips11 comments – viewed 59,042 times – ( +27 / -2 ) – version 1.1
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.