Wiki

Articles tagged with "cgridview"X
Displaying 21-30 of 56 result(s).

Adding a link to a CDataColumn

Created about a year ago by le_topTips6 comments – viewed 6,937 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

Limit a CGridView field to some preset length.

Created about a year ago by le_topHow-tos1 comment – viewed 6,577 times – ( +12 ) – version 1.1
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created about a year ago by Xgamer99Tips3 comments – viewed 7,888 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

Create custom button button with AJAX function in CGridView

Created about a year ago by nkdHow-tos1 comment – viewed 27,367 times – ( +11 ) – version 1.1
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created about a year ago by yJeroenTutorials8 comments – viewed 35,045 times – ( +15 ) – version 1.1
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

CGridView, CListView and CActiveDataProvider

Created about a year ago by softarkTutorials21 comments – viewed 66,693 times – ( +45 ) – 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.

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

Created about a year ago by bluezedTutorials5 comments – viewed 15,686 times – ( +9 / -1 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

Customize CGridView columns directly in your view

Created about a year ago by clapasTips4 comments – viewed 17,596 times – ( +2 / -2 ) – version 1.1
You usually take a model instance passed into your view to provide data to a CGridView in this way:

Working with CGridView in Admin Panel

Created about a year ago by vibhaJadwaniTutorials17 comments – viewed 51,743 times – ( +41 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created about a year ago by LuizTips1 comment – viewed 11,148 times – ( +7 ) – version 1.1
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.