Wiki articles in category Tutorials tagged with "CGridView"

Showing 1-14 of 14 items.

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

Created 11 years ago by Louis Gac Louis Gac, updated 11 years ago by Louis Gac 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: 24 555 times
Version: 1.1
Category: Tutorials

CSqlDataProvider in CGridView

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

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

3 0
9 followers
Viewed: 38 093 times
Version: 1.1
Category: Tutorials

Saving CGridView filter

Created 11 years ago by sefburhan sefburhan, updated 11 years ago by CeBe 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: 14 959 times
Version: 1.1
Category: Tutorials

Display image on CGridView column and open a fancy-box

Created 12 years ago by Ankit Modi Ankit Modi, updated 12 years ago by Ankit Modi Ankit Modi.

1) Add a fancy-box extension on admin page

0 0
2 followers
Viewed: 19 054 times
Version: Unknown (update)
Category: Tutorials

Display Status image on CGridView column

Created 12 years ago by Ankit Modi Ankit Modi, updated 6 years ago by samdark samdark.

How to display status image on admin gridview.

0 0
5 followers
Viewed: 23 253 times
Version: 1.1
Category: Tutorials

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 13 years ago by yJeroen yJeroen, updated 13 years ago by yJeroen 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: 77 096 times
Version: 1.1
Category: Tutorials

CGridView, CListView and CActiveDataProvider

Created 13 years ago by softark softark, updated 12 years ago by softark 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: 148 160 times
Version: 1.1
Category: Tutorials

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

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

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 45 309 times
Version: 1.1
Category: Tutorials

Working with CGridView in Admin Panel

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

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

21 1
41 followers
Viewed: 93 151 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 13 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 12 years ago by Gerhard Liebenberg 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: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created 13 years ago by c@cba c@cba, updated 13 years ago by c@cba 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: 82 547 times
Version: 1.1
Category: Tutorials

Exporting CGridView results to CSV file

Created 13 years ago by RusAlex RusAlex, updated 13 years ago by RusAlex 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: 71 391 times
Version: 1.1
Category: Tutorials

Searching and sorting by related model in CGridView

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

Lets say we have two models and relation between them:

77 0
93 followers
Viewed: 292 971 times
Version: 1.1
Category: Tutorials

Update/delete model with CJuiDialog (works in CGridView)

Created 14 years ago by ifdattic ifdattic, updated 14 years ago by ifdattic 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: 79 330 times
Version: 1.1
Category: Tutorials