Wiki

Articles tagged with "cgridview", sorted by date (updated)X
Displaying 41-50 of 65 result(s).

How to show ajax delete status in CGridView like flash messages

Updated 3 years ago by adlersdHow-tos12 comments – viewed 43,714 times – ( +25 ) – version 1.1
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())

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

Updated 3 years ago by robregonmTips1 comment – viewed 15,398 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.

Creating a jQueryUI Sortable CGridView

Updated 3 years ago by rAWTAZHow-tos23 comments – viewed 39,464 times – ( +48 / -1 ) – version 1.1
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 3 years ago by GismoHow-tos18 comments – viewed 268,045 times – ( +101 ) – version 1.1
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 3 years ago by Maurizio Domba CerinTips3 comments – viewed 13,065 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

Updated 3 years ago by nkdHow-tos2 comments – viewed 50,523 times – ( +19 ) – 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

Updated 3 years ago by yJeroenTutorials8 comments – viewed 55,997 times – ( +21 ) – version 1.1
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 4 years ago by bluezedTutorials5 comments – viewed 29,529 times – ( +10 / -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

Updated 4 years ago by clapasTips4 comments – viewed 30,116 times – ( +3 / -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

Updated 4 years ago by vibhaJadwaniTutorials18 comments – viewed 76,062 times – ( +43 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.