I'm having trouble displaying a twitter bootstrap icon in the jqgrid caption section. The icon is not showing up despite my efforts. Here's the fiddler link: https://jsfiddle.net/99x50s2s/31/
Here's the code I've tried:
jQuery("#sg1").jqGrid({
datatype: "local",
gridview: true,
loadonce: true,
shrinkToFit: false,
autoencode: true,
height: 'auto',
viewrecords: true,
sortorder: "desc",
scrollrows: true,
loadui: 'disable',
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'id',index:'id', width:60, sorttype:"int"},
{name:'invdate',index:'invdate', width:90, sorttype:"date"},
{name:'name',index:'name', width:100},
{name:'amount',index:'amount', width:80, align:"right",sorttype:"float"},
{name:'tax',index:'tax', width:80, align:"right",sorttype:"float"},
{name:'total',index:'total', width:80,align:"right",sorttype:"float"},
{name:'note',index:'note', width:150, sortable:false}
],
caption: "<i class'glyphicon glyphicon-alert'></i> Pending"
});
Current Output:
Expected:
Am I missing something? Can you help me figure out how to display the bootstrap icon in jqgrid caption?