Wiki

Articles tagged with "cgridview", sorted by date (updated)X
Displaying 11-20 of 38 result(s).

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

Updated 5 months ago by robregonmTips1 comment – viewed 5,936 times – ( +6 )
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

Creating a jQueryUI Sortable CGridView

Updated 5 months ago by rAWTAZHow-tos13 comments – viewed 17,038 times – ( +35 )
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

Using CButtonColumn to customize buttons in CGridView

Updated 5 months ago by GismoHow-tos15 comments – viewed 103,430 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.

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

Updated 6 months ago by Maurizio DombaTips3 comments – viewed 4,018 times – ( +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

Updated 7 months ago by nkdHow-tos0 comments – viewed 9,641 times – ( +4 )
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.

Using filters with CGridView and CArrayDataProvider

Updated 7 months ago by marcovtwoutHow-tos12 comments – viewed 24,422 times – ( +10 )
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

CGridView, CListView and CActiveDataProvider

Updated 8 months ago by softarkTutorials11 comments – viewed 32,215 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.

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Updated 8 months ago by yJeroenTutorials8 comments – viewed 16,429 times – ( +11 )
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

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

Updated 9 months ago by bluezedTutorials5 comments – viewed 7,142 times – ( +6 )
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

Updated 9 months ago by clapasTips2 comments – viewed 9,489 times – ( +2 / -1 )
You usually take a model instance passed into your view to provide data to a CGridView in this way: