10 Yii::import(
'booster.widgets.TbButtonColumn');
28 if ($this->grid->json) {
30 $this->renderHeaderCellContent();
31 $content = ob_get_contents();
34 return array(
'id' => $this->
id,
'content' => $content);
48 if ($this->grid->json) {
49 $data = $this->grid->dataProvider->data[$row];
50 $options = $this->htmlOptions;
51 if ($this->cssClassExpression !== null) {
52 $class = $this->evaluateExpression($this->cssClassExpression, array(
'row' => $row,
'data' =>
$data));
54 if (isset($options[
'class'])) {
55 $options[
'class'] .=
' ' .
$class;
57 $options[
'class'] =
$class;
63 'attrs' => CHtml::renderAttributes($options),
75 $html = ob_get_contents();
78 if ($this->grid->json) {
94 $this->buttons[
'delete'][
'click'] = strtr(
95 $this->buttons[
'delete'][
'click'],
96 array(
'yiiGridView' =>
'yiiJsonGridView')