Difference between #1 and #3 of
CGridView customized CCheckBoxColumn

Changes

Title unchanged

CGridView customized CCheckBoxColumn

Category unchanged

Tips

Yii version unchanged

Tags unchanged

CCheckBoxColumn, addtag, dynamic tag, jquery, CGridView

Content changed

[...]
1) How to add dynamic tag in header for styling header layout and

2) How to add dynamic tag in column for styling column layout

3) How to add dynamic tag after filter result.
 
 
a) First point can be achieved by below code (Its default attribute from YII)

```php
[...]
```

c) Third point can be achieved by below jquery code in cgridveiw (Trick here goes)
 
 
 
```php 
$this->widget('zii.widgets.grid.CGridView', array(
 
'afterAjaxUpdate'=>'function(id, data){
 
  $("[id^=state_id_]").wrap("<label class=list></label>");
 
  $("<span></span>").insertAfter("[id^=state_id_]");
 
}',
 
        'id'=>'programm-grid',
 
));
 
```
 
 
I hope it will help some one else who trying to modify layout for CCheckBoxColumn column Have a fun cheers :)
3 0
6 followers
Viewed: 20 354 times
Version: 1.1
Category: Tips
Written by: chandran
Last updated by: CeBe
Created on: Feb 18, 2014
Last updated: 10 years ago
Update Article

Revisions

View all history