html link column in jqGrid

前端 未结 6 1278
轮回少年
轮回少年 2020-12-24 06:13

Is it possible have a html link in a column with jqGrid, I can\'t find any example in the documentation?

6条回答
  •  孤城傲影
    2020-12-24 07:04

    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'}
    

提交回复
热议问题