Is it possible have a html link in a column with jqGrid, I can't find any example in the documentation?
+4
A:
Yes, use a formatter, either a custom formatter or the built-in link formatter.
Craig Stuntz
2009-07-22 15:53:48
A:
within the json data i am using for the grid, i just send html code back with a href tag in, that works for me
beakersoft
2009-11-11 11:19:51
+3
A:
Here's the sample colModel configuration from Craig's link to jqGrid formatting help. It specifies the formatter as showLink and the url and params are specified with formatoptions.
colModel: [ {name:'myname',
edittype:'select',
formatter:'showlink',
formatoptions:{baseLinkUrl:'someurl.php', addParam: '&action=edit'}
Randy Klingelheber
2010-03-23 16:54:32
Thanks for posting the sample. Always helpful :)
Dan
2010-05-07 08:57:24