Open bpap opened 9 years ago
Just upgraded to the latest bootstrap and yiibooster versions, and the fixed header functionality stopped working. My code is as follows:
$this->widget('booster.widgets.TbExtendedGridView', array( 'id' => 'vpolicy-grid', 'fixedHeader' => true, 'headerOffset' => 40, 'dataProvider' => $model->searchForPolicyIndex(), 'filter' => $model, 'type' => 'striped bordered condensed hover', 'htmlOptions' => array('style'=>'cursor: pointer;'), 'selectableRows' => 1, // you can select only 1 row!! 'selectionChanged' => 'function(id){ var objectId = $("#"+id).yiiGridView("getSelection"); if (isNaN(objectId) || objectId == ""){return;} location.href = "'.$this->createUrl('policy/view').'&id="+$("#"+id).yiiGridView("getSelection");}',
Did anyone come across this issue?
Thanks!
Just upgraded to the latest bootstrap and yiibooster versions, and the fixed header functionality stopped working. My code is as follows:
$this->widget('booster.widgets.TbExtendedGridView', array( 'id' => 'vpolicy-grid', 'fixedHeader' => true, 'headerOffset' => 40, 'dataProvider' => $model->searchForPolicyIndex(), 'filter' => $model, 'type' => 'striped bordered condensed hover', 'htmlOptions' => array('style'=>'cursor: pointer;'), 'selectableRows' => 1, // you can select only 1 row!! 'selectionChanged' => 'function(id){ var objectId = $("#"+id).yiiGridView("getSelection"); if (isNaN(objectId) || objectId == ""){return;} location.href = "'.$this->createUrl('policy/view').'&id="+$("#"+id).yiiGridView("getSelection");}',
Did anyone come across this issue?
Thanks!