Whgridview Error

The following exact same code works in one yii installation, not in another, and throws the following error:

[b]Property "WhGridView.rowHtmlOptionsExpression" is not defined.

[/b]




$this->widget('yiiwheels.widgets.grid.WhGridView', array(

	'fixedHeader' => true,

	'headerOffset' => 40,

	'type' => 'striped',

	'dataProvider' => $model->search(),

	'responsiveTable' => true,

	'template' => "{items}",

	'columns' => array(

		'ID',

		'Name',

		array(

			'class'=>'bootstrap.widgets.TbButtonColumn',

		),

	),

));



[b]

[/b]

This error occurs in protected/extensions/yiiwheels/widgets/grid/WhGridView.php line 242, and I have commented a portion out for the time being (although that is not the solution I admit)




   ....

	public function renderTableRow($row)

	{

		$htmlOptions = array();

		/*

		if ($this->rowHtmlOptionsExpression !== null) {

			$data = $this->dataProvider->data[$row];

			$options = $this->evaluateExpression(

				$this->rowHtmlOptionsExpression,

				array('row' => $row, 'data' => $data)

			);

			if (is_array($options)) {

				$htmlOptions = $options;

			}

		}

		*/

....



i updated the WhGridView.php file by adding the following line, solves the problem for now…




protected $rowHtmlOptionsExpression;



Anybody else use the WhGridView? It’s a great widget I think