Open In New Window With 'bootstrap.widgets.tbgridview'

I have some buttons in the TbGridView and I want to open the link in a new window (Target = _blank. How would I do this with the TbButtonColumn. My code is




 $this->widget('bootstrap.widgets.TbGridView', array(

    'type' => 'striped bordered condensed',

    'dataProvider' => $dataProviderPI, 

    'enablePagination'=>true,

    'summaryText'=>'Displaying Insurance Documents {start}-{end} of {count} results.',

    'template' => "{summary}{items}{pager}",

    'htmlOptions'=>array('style' => 'width:500px;margin-left: 130px;',),

    'columns' => array(

        array('name' => 'insurer', 'header' => 'Insurance Company'),

        array('name' => 'policy_no', 'header'=> 'Policy Number'),

        array('name' => 'cover_amount', 'header'=> 'Cover Amount'),

        array('name' => 'finish_date', 'header'=> 'Expiry Date'),

        array('name' => 'scanned_doc', 'header' => 'Document'),       

        array(

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

            'header'=>'View',

            'template'=>'{view}',

            'viewButtonUrl'=>'"$data->scanned_doc"',

            'htmlOptions'=>array('style'=>'width:20px;text-align:center;'),


        ),

        ),


)); ?>




I am unsure how the following in a new window




'viewButtonUrl'=>'"$data->scanned_doc"',



Any help appreciated

‘options’=>array(‘target’=>’_blank’)

That is a parameter with CGridView not bootstrap.widgets.TbGridView

‘columns’ => array(

            array(


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


                'template'=>' {view}',


                'buttons'=>array


                    (


                        'view' => array


                        (


                            'url'=>'Yii::app()->createUrl("/aaa/aaa",array('id'=>$data->id))',


                            'options'=>array('target'=>'_blank') 


                        ),


     )

This should open in new tab. just fix your url

Sorry - missed your point. You are right. Thanks