Wiki articles tagged with "CGridView"

Showing 21-40 of 65 items.

How to Display tooltp(qtip) on CGridview dynamic

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

Hi Friends,

0 0
4 followers
Viewed: 17 531 times
Version: Unknown (update)
Category: Tips

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: 22 780 times
Version: 1.1
Category: Tutorials

Insert a multirow header in CGridView

Created 12 years ago by Peppe Peppe, updated 10 years ago by Peppe Peppe.

The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way **you can write columns grouping h...

4 0
5 followers
Viewed: 28 767 times
Version: 1.1
Category: How-tos

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 12 years ago by VINAY Kr. SHARMA VINAY Kr. SHARMA, updated 9 years ago by VINAY Kr. SHARMA VINAY Kr. SHARMA.

CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

3 0
12 followers
Viewed: 32 529 times
Version: 1.1
Category: How-tos

multiple CActiveDataProviders in one CGridView

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 10 years ago by Nashi Nashi.

There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

4 1
9 followers
Viewed: 33 936 times
Version: 1.1
Category: How-tos

Search a file size range in CGridView

Created 12 years ago by CrazyCat CrazyCat, updated 12 years ago by CrazyCat CrazyCat.
  1. Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
  2. Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
2 0
2 followers
Viewed: 12 645 times
Version: Unknown (update)
Category: Tips

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 12 years ago by Maug Lee Maug Lee, updated 11 years ago by yugene yugene.

Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

Implementation

<?php
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'dat...
7 0
4 followers
Viewed: 56 081 times
Version: 1.1
Category: How-tos

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created 12 years ago by le_top le_top, updated 12 years ago by le_top le_top.

Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

3 0
3 followers
Viewed: 16 079 times
Version: 1.1
Category: Tips

Adding a date range search for CGridView the easy way

Created 12 years ago by mikewalen mikewalen, updated 11 years ago by mikewalen mikewalen.
  1. Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
  2. Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
  3. Modify the _search form view to add the date range inputs
6 0
11 followers
Viewed: 43 767 times
Version: 1.1
Category: Tips

Adding a link to a CDataColumn

Created 12 years ago by le_top le_top, updated 12 years ago by le_top le_top.

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.

2 0
8 followers
Viewed: 28 016 times
Version: 1.1
Category: Tips

Limit a CGridView field to some preset length.

Created 12 years ago by le_top le_top, updated 12 years ago by le_top le_top.

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.

9 0
9 followers
Viewed: 23 836 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by Xgamer99 Xgamer99, updated 12 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

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 o...

1 0
7 followers
Viewed: 22 501 times
Version: 1.1
Category: Tips

Create custom button button with AJAX function in CGridView

Created 12 years ago by nkd nkd, updated 12 years ago by nkd nkd.

This will call the controller function using AJAX instead of redirecting the user to the url using GET parameters.

5 0
15 followers
Viewed: 68 983 times
Version: 1.1
Category: How-tos

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 12 years ago by yJeroen yJeroen, updated 12 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: 76 479 times
Version: 1.1
Category: Tutorials

CGridView, CListView and CActiveDataProvider

Created 12 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: 147 094 times
Version: 1.1
Category: Tutorials

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

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

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 44 948 times
Version: 1.1
Category: Tutorials

Customize CGridView columns directly in your view

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

You usually take a model instance passed into your view to provide data to a CGridView in this way:

2 1
5 followers
Viewed: 40 222 times
Version: 1.1
Category: Tips

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: 92 703 times
Version: 1.1
Category: Tutorials

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

Created 13 years ago by Luiz Luiz, updated 12 years ago by robregonm robregonm.

A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

5 0
7 followers
Viewed: 25 837 times
Version: 1.1
Category: Tips

How to filter CGridView with From Date and To Date datepicker

Created 13 years ago by kiran sharma kiran sharma, updated 13 years ago by kiran sharma kiran sharma.

This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

9 0
26 followers
Viewed: 64 943 times
Version: 1.1
Category: Tips