html link column in jqGrid

前端 未结 6 1265
轮回少年
轮回少年 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:09

    Sorry to post to an old question, but here is another option that worked for me: simply create a custom formatter and return an anchor tag (a good option if you need really granular control of the link):

    function returnMyLink(cellValue, options, rowdata, action) 
    {
        return "Click here";
    }   
    

    Look in the rowdata for the data returned by your query. Hope this helps someone!

提交回复
热议问题