hi all,
i want to show pdf file when click on view icon in bootstrap.widgets.TbGridView through lightbox?
plz help me!!
<?php
$this->widget(‘bootstrap.widgets.TbGridView’, array(
'id' => 'newsLetter-grid',
'type' => 'striped bordered condensed',
'dataProvider' => $model->search(),
'filter' => $model,
'pager' => array(
'class' => 'CLinkPager',
),
'template' => "{items}{summary}{pager}",
'enablePagination' => true,
'columns' => array(
array('name' => 'id', 'header' => '#'),
array('name' => 'name', 'header' => 'First name'),
array(
'class' => 'bootstrap.widgets.TbButtonColumn',
'template' => '{view}{delete}{update}',
'buttons'=>array(
[b]'view' => array(
//'url' => '$this->grid->controller->createUrl("newsLetter/view", array("id"=>$data->id))',
'click'=>'js:function(event) {
event.preventDefault();
$("#mydialog").dialog({
});[/b]
return false; }',
)),
'htmlOptions' => array( ),
),
),
));