Yii Framework Forum: GridView will not highlight selected row - Yii Framework Forum

Jump to content

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

GridView will not highlight selected row Rate Topic: -----

#1 User is offline   Bass28 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 16
  • Joined: 27-March 14

Posted 23 January 2018 - 07:58 AM

I render a form in a JUI Dialog for the user to select an entry. The form contains a CGridView. Here is my controller code:

Yii::app()->clientScript->scriptMap['jquery.js'] = false;
Yii::app()->clientscript->scriptMap['jquery-ui.min.js'] = false;
YII_DEBUG ? Yii::app()->clientscript->scriptMap['jquery.js'] = false : Yii::app()->clientscript->scriptMap['jquery.min.js'] = false;
Yii::app()->clientscript->scriptMap['jquery.yiigridview.js'] = false;

            $this->renderPartial('_form', array(
                'model' => $model,
                'items' => $items,
                'bins' => $bins,
                    ), false, true);

Yii::app()->end();


The first time the dialog is displayed, the user can click a row in the grid view and the row is highlighted. They then close the dialog. The next time the dialog is displayed, everything works, however, if you click a row in the grid view the row is not highlighted. The user does not know which row they clicked ojn.

What can I do to get this to work?
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