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 5 years ago by Louis Gac, updated 5 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: 16 492 times
Version: 1.1
Category: Tutorials

CSqlDataProvider in CGridView

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 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: 30 303 times
Version: 1.1
Category: Tutorials

Saving CGridView filter

Created 5 years ago by sefburhan, updated 5 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: 10 712 times
Version: 1.1
Category: Tutorials

Display image on CGridView column and open a fancy-box

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

1) Add a fancy-box extension on admin page

0 0
2 followers
Viewed: 15 486 times
Version: Unknown (update)
Category: Tutorials

Display Status image on CGridView column

Created 6 years ago by Ankit Modi, updated 8 months ago by samdark.

How to display status image on admin gridview.

0 0
5 followers
Viewed: 16 984 times
Version: 1.1
Category: Tutorials

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

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

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

Intro

16 0
41 followers
Viewed: 66 444 times
Version: 1.1
Category: Tutorials

CGridView, CListView and CActiveDataProvider

Created 7 years ago by softark, updated 6 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: 131 998 times
Version: 1.1
Category: Tutorials

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

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

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 38 702 times
Version: 1.1
Category: Tutorials

Working with CGridView in Admin Panel

Created 7 years ago by vibhaJadwani, updated 7 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: 83 750 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 7 years ago by Gerhard Liebenberg, updated 5 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: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

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

Exporting CGridView results to CSV file

Created 7 years ago by RusAlex, updated 7 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
17 followers
Viewed: 54 884 times
Version: 1.1
Category: Tutorials

Searching and sorting by related model in CGridView

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

Lets say we have two models and relation between them:

76 0
96 followers
Viewed: 221 422 times
Version: 1.1
Category: Tutorials

Update/delete model with CJuiDialog (works in CGridView)

Created 8 years ago by ifdattic, updated 8 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: 72 205 times
Version: 1.1
Category: Tutorials