Home › Forums › Guriddo jqGrid JS › Help › 3.5 Custom Format Functions
Hi,
Where do we need to create the custom formatter fucntions (jqGrid 3.5)? In the language file, or in the jquery.jqGrid.min.js file?
Thanks!
Hello,
You should create the function in your code and pass it to the formatter:
var myformatfunc = function(cellval,options,rowdata) {
// do here formatting of the cellval
return formatted_cellval;
}
Then in your colModel
colModel : [
….
{name : 'myname', formatter : myformatfunc…},
]
Regards
Tony
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS