Yii Framework Forum: Create button of CGridView with function renderDataCell(), sort table (update) column - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create button of CGridView with function renderDataCell(), sort table (update) column Rate Topic: -----

#1 User is offline   Robin Hs 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 19-February 18

Posted 19 February 2018 - 08:43 PM

Hello friends,
i would like to know how to create a button in my view (path: ./components/widgets/views/r_widget.php) and how to get it work. This button should be connected to CGridView (path: ./yii/framework/zii/widgets/grid/CGridView.php) and should be integrated into the function

	protected function renderDataCell($column, $row)
	{	
		$column->renderDataCell($row);		
	}


The button have to sort a column (column is named 'score', column is from type int) (table got several columns ($this->columns[9]->getDataCellContent($row)) by a fixed value. I didnt get it work until now. Button doesnt react a thing. Any possible solution for this type of problem?

Many Thanks!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users