Hello,
I have a CGridview populated through a CArrayDataProvider.
The CArrayDataProvider is filled with Information from a Directory-Listing.
Here’s the view:
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'files-grid',
'dataProvider'=>$model->searchFiles(),
'template'=>"{items}",
'columns'=>array(
array(
'header'=>'Filename',
'name'=>'filename',
'htmlOptions'=>array('width'=>'40%'),
'value'=> 'CHtml::link($data["filename"],array("files/view", "path"=>$data["path"]))',
'type'=>'html',
),
.....
),
'htmlOptions'=>array('style'=>'cursor: pointer;'),
));
When the User clicks on one Row he can download the File.
That’s all working fine.
Sometimes it may take some time until the User can save the file after he clicked the appropriate file.
For that reason I want to display a Dialog Box with a Message like ‘Please wait…’ or something like that.
But I have no idea how I can accomplish that.
If I try to add some Javascript-code inside the CHTML::link I only get errors.
Can anybody have an idea or can point me to the right direction how I can get it to work?
Kind regads
winstonsmith