27 if ($this->grid->json) {
28 $this->headerHtmlOptions[
'id'] = $this->id;
29 if ($this->grid->json) {
30 return CMap::mergeArray(
31 $this->headerHtmlOptions,
46 if ($this->grid->json) {
47 if (trim($this->headerTemplate) ===
'') {
48 return $this->grid->blankDisplay;
51 if ($this->selectableRows === null && $this->grid->selectableRows > 1) {
52 $item = CHtml::checkBox($this->
id .
'_all',
false, array(
'class' =>
'select-on-check-all'));
53 }
else if ($this->selectableRows > 1) {
54 $item = CHtml::checkBox($this->
id .
'_all',
false);
58 $item = ob_get_clean();
62 $this->headerTemplate,
80 if ($this->grid->json) {
81 $data = $this->grid->dataProvider->data[$row];
82 $options = $this->htmlOptions;
83 if ($this->cssClassExpression !== null) {
84 $class = $this->evaluateExpression($this->cssClassExpression, array(
'row' => $row,
'data' =>
$data));
86 if (isset($options[
'class'])) {
87 $options[
'class'] .=
' ' .
$class;
89 $options[
'class'] =
$class;
95 'attrs' => CHtml::renderAttributes($options),
115 $html = ob_get_contents();
118 if ($this->grid->json) {