Is it possible have a format number as link in a cell with jqGrid? with two formatter number and link/showlink
colModel:[
{name:'Balance',index:'Balance',align:'right',formatter: 'showlink', sorttype:"float", summaryType:'sum', formatoptions:{thousandsSeparator:","}},...
Im trying to set Balance as link and still able to sum up with grouping
TIA
Yes, you can!
You can define custom formatter and call the original "number" and "showlink" formatters inside of the your custom formatters.
For example the demo uses
How you can see I used
options
of custom formatter as the corresponding parameter of$.fn.fmatter
. So one can use mix from options of "number" and "showlink" formatters inside offormatoptions
.