In the hyperlink of the file, instead of entering a long URL we replace it with an image or “DOWNLOAD.”
Can someone help me write the “Row_Rendered” code?
Thanks in advance
Let me give you some clues for this.
- You may use var_dump() to expose the properties of the field. Let’ say the field name is MyFile, then you may simply put the following code in Row_Rendered server event:
var_dump($this->MyFile); // this will expose and output all the properties that belongs to the MyFile field.
- Based on the output of that var_dump, then you should be able to get the value of the related properties, and use it to change the output of the link becomes a button.
- Please try it by yourself first, and post your code for more discussion.
Hi there ;
I’m not a pro. but ,I used This code to change the hlink to Download icon
$this->Upload_->ViewValue = “” ;where Upload_ is the field U want to adjust .
Hey
The Code Works Fine
Thank you very much for your help!