Deprecated: iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in /home/datamerx/public_html2/jqgrid/jqgrid/libraries/joomla/string/string.php on line 28

Deprecated: iconv_set_encoding(): Use of iconv.input_encoding is deprecated in /home/datamerx/public_html2/jqgrid/jqgrid/libraries/joomla/string/string.php on line 29

Deprecated: iconv_set_encoding(): Use of iconv.output_encoding is deprecated in /home/datamerx/public_html2/jqgrid/jqgrid/libraries/joomla/string/string.php on line 30

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/datamerx/public_html2/jqgrid/jqgrid/libraries/joomla/filter/input.php on line 652

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/datamerx/public_html2/jqgrid/jqgrid/libraries/joomla/filter/input.php on line 652
jqGrid Forums :: Topic: Showing links as meaningful text (1/1)
Welcome, Guest
Username: Password: Remember me

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/datamerx/public_html2/jqgrid/jqgrid/libraries/joomla/filter/input.php on line 652
  • Page:
  • 1

TOPIC: Showing links as meaningful text

Showing links as meaningful text 4 years 5 months ago #56

  • komrad
  • komrad's Avatar
There is a column in my grid that displays links to flash videos. These are pretty long and ugly. Is there a way to display some meaningful text in that column, e.g. "Click to watch video" and open up the respective link when that text gets clicked?
The administrator has disabled public write access.

Showing links as meaningful text 4 years 5 months ago #59

  • positron

  • Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/datamerx/public_html2/jqgrid/jqgrid/libraries/joomla/filter/input.php on line 652
  • positron's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 59
  • Thank you received: 4
  • Karma: 1
You could use a custom formatter in your colModel. Create a function that takes the hyperlink as an argument and returns it as '<a href="' + hyperlink + '">Click to watch video</a> '
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.914 seconds