Code of the table that mounts JQGRID:
var grid = $("#jqGrid").jqGrid({
url:'/Portaria/Agenda/Listar',
mtype: 'GET',
datatype: 'json',
colModel: [
{ label: 'Id', name: 'id', width: 50 },
{ label: 'Nome', name: 'nome', width: 250 },
{ label: 'Telefone1', name: 'telefone1', width: 80 },
{ label: 'Telefone2', name: 'telefone2', width: 80 },
{ label: 'Telefone3', name: 'telefone3', width: 80 },
],
loadonce: true,
pager: '#jqGridPager',
rowNum: 10,
rowList: [10, 20, 30, 50],
viewrecords: true,
height: 250
});
$("#jqGrid").jqGrid('navGrid', 'jqGridPager', { edit: false, add: false, del: false })
o Return
How to format the fields Phone1, Phone2, Phone3, putting the mask on?
exemplo: (99)9999-9999?9