Information: I am using jqGrid(4.54)
, and also implemented SubGrid
, after opening SubGrid
, it is necessary to export the contents of the open table.
Question: Is there a way to implement a button or a link within SubGrid
?
See below the code for my SubGrid
:
var subgrid_table_id;
subgrid_table_id = subgrid_id+"_t";
jQuery("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='paginacaoSub'></div>");
jQuery("#"+subgrid_table_id).jqGrid({
url: urlRelatorioInterno,
datatype: 'json',
mtype: 'POST',
colModel: [
{name:"dataHora", index:"dataHora", jsonmap:"dataHora", label:"Data e Hora", sortable: true, sorttype: "date"},
{name:"tipoSolicitacao",index:"tipoSolicitacao",jsonmap:"tipoSolicitacao",label:"Tipo Solicitacao", sortable: true, sorttype: "int"},
{name:"statusSolicitacao",index:"statusSolicitacao",jsonmap:"statusSolicitacao",label:"Status Solicitacao", sortable: true, sorttype: "text"},
{name:"numeroSolicitacao",index:"numeroSolicitacao",jsonmap:"numeroSolicitacao",label:"Numero Solicitacao", sortable: true, sorttype: "int"},
{name:"numeroCartao",index:"numeroCartao",jsonmap:"numeroCartao",label:"Numero Cartao", sortable: true, sorttype: "int"},
{name:"nomeSegurado",index:"nomeSegurado",jsonmap:"nomeSegurado",label:"Nome Segurado", sortable: true, sorttype: "text"},
{name:"codigoReferenciado",index:"codigoReferenciado",jsonmap:"codigoReferenciado",label:"Codigo Referenciado", sortable: true, sorttype: "int"},
{name:"nomeReferenciado",index:"nomeReferenciado",jsonmap:"nomeReferenciado",label:"Nome Referenciado", sortable: true, sorttype: "text"},
{name:"senha",index:"senha",jsonmap:"senha",label:"Senha", sortable: true, sorttype: "text"},
{name:"canalSolicitacao",index:"canalSolicitacao",jsonmap:"canalSolicitacao",label:"Canal Solicitacao", sortable: true, sorttype: "int"}],
pager: "#paginacaoSub",
scroll: 1,
width: 1100,
height: 240,
rowNum:10,
rowList: true,
loadonce:true
});