Wiki articles in category Tutorials tagged with "CGridView"

Showing 1-13 of 13 items.

Display Status image on CGridView column

Created 10 years ago by Ankit Modi, updated 5 years ago by samdark.

How to display status image on admin gridview.

0 0
5 followers
Viewed: 21 125 times
Version: 1.1
Category: Tutorials

Saving CGridView filter

Created 10 years ago by sefburhan, updated 9 years ago by CeBe.

In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

1 0
31 followers
Viewed: 13 384 times
Version: 1.1
Category: Tutorials

Exporting CGridView results to CSV file

Created 12 years ago by RusAlex, updated 12 years ago by RusAlex.

A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.

6 3
18 followers
Viewed: 69 363 times
Version: 1.1
Category: Tutorials

CSqlDataProvider in CGridView

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by CeBe.

In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

3 0
9 followers
Viewed: 35 777 times
Version: 1.1
Category: Tutorials

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Created 9 years ago by Louis Gac, updated 9 years ago by Louis Gac.

Let's take the example of the above article to display an email button next to a delete button:

3 0
4 followers
Viewed: 22 170 times
Version: 1.1
Category: Tutorials

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 11 years ago by bluezed, updated 11 years ago by bluezed.

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 43 305 times
Version: 1.1
Category: Tutorials

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created 12 years ago by c@cba, updated 12 years ago by c@cba.

    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this:
'value'=>'$data->author->username',.
    Now we might want to use $data in the declaration of the `...

19 1
14 followers
Viewed: 79 772 times
Version: 1.1
Category: Tutorials

Working with CGridView in Admin Panel

Created 11 years ago by vibhaJadwani, updated 11 years ago by vibhaJadwani.

This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

21 1
41 followers
Viewed: 90 374 times
Version: 1.1
Category: Tutorials

Update/delete model with CJuiDialog (works in CGridView)

Created 12 years ago by ifdattic, updated 12 years ago by ifdattic.

This tutorial will show you how to create Ajax dialog which allows to create new model, update or delete existing model. It works with simple links, CGridView button column links, adds a minimal amount of code and degrades gracefully with JavaScript turned off.

15 0
25 followers
Viewed: 76 995 times
Version: 1.1
Category: Tutorials

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 11 years ago by yJeroen, updated 11 years ago by yJeroen.

This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

Intro

17 0
41 followers
Viewed: 74 342 times
Version: 1.1
Category: Tutorials

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

Created 11 years ago by Gerhard Liebenberg, updated 10 years ago by Gerhard Liebenberg.

Many desktop programmers are used to having dynamic forms, where clicking on a record in a parent sub-form, updates another sub-form with the child records. While having many levels of nested sub-forms in a single view might not be such a good idea for a web application, I thought doing it one level deep might be interesting and useful. But, instead of sub-forms I used CGridViews.

CGridView, CListView and CActiveDataProvider

Created 11 years ago by softark, updated 10 years ago by softark.

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.

26 0
33 followers
Viewed: 143 393 times
Version: 1.1
Category: Tutorials

Searching and sorting by related model in CGridView

Created 12 years ago by Maciej Liżewski, updated 9 years ago by Kostas Apazidis (KonApaz).

Lets say we have two models and relation between them:

77 0
93 followers
Viewed: 271 901 times
Version: 1.1
Category: Tutorials