html link column in jqGrid

前端 未结 6 1263
轮回少年
轮回少年 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 06:59

    If you use xml data, you can add a dummy column in your query to display it in the grid

    grid:

    colModel :[{name:'EDIT',edittype:'select',formatter:'showlink', width:5,xmlmap:"Edit",formatoptions:{baseLinkUrl:'someurl.php', addParam: '&action=edit'}},
    

    query:

    select f1,f2,f3, 'Edit' as Edit FROM table
    

提交回复
热议问题