Wiki

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

Using CButtonColumn to customize buttons in CGridView

Created 2 years ago by TrejderHow-tos15 comments – viewed 103,964 times – ( +81 )
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 about a year ago by redguyTutorials49 comments – viewed 59,589 times – ( +77 )
Lets say we have two models and relation between them:

CGridView: Render customized/complex datacolumns

Created about a year ago by JobloTips8 comments – viewed 57,835 times – ( +56 )
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

Using standard filters in CGridView custom fields

Created 2 years ago by GOshaHow-tos4 comments – viewed 34,287 times – ( +15 )
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:

CGridView, CListView and CActiveDataProvider

Created 8 months ago by softarkTutorials11 comments – viewed 32,417 times – ( +28 )
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.

Update/delete model with CJuiDialog (works in CGridView)

Created about a year ago by ifdatticTutorials6 comments – viewed 31,306 times – ( +14 )
This is based on this article.

Working with CGridView in Admin Panel

Created 10 months ago by vibhaJadwaniTutorials11 comments – viewed 29,351 times – ( +29 / -1 )
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

Using filters with CGridView and CArrayDataProvider

Created about a year ago by marcovtwoutHow-tos12 comments – viewed 24,534 times – ( +10 )
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Displaying image in a CGridView column.

Created about a year ago by sirin kHow-tos5 comments – viewed 22,848 times – ( +12 / -1 )
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image