Home › Forums › Bugs › custom unformat
hi – I'm using 3.5.3 and the custom unformat function parameters are passed empty…
” : “”,\n
Hello,
Load the language file grid.locale-XX.js before the jqGrid file.
Regards
Tony
Tony, thanks for getting me back on track – that fixed it!
& thanks for jqgrid – it's wonderful!
tony, that got rid of the error,
Could you please post the entry jqGrid configuration and all related functions related to this?
Best Regards
Tony –
I'm hosed.
I've been tracing through the code with Firebug for hours and I think I finally found my problem.
We have created the formatter so that it can be aesy extended with your own format/unformat function.
We make it so, because it is not possible to meet all user specific requierments.
Also to extend the formatter you just need to do
$.extend($.fn.fmatter , {
myformatter : function (cellval, options) {
// do something
return formated_value;
}
});
$.extend($.fn.fmatter.myformatter ,{
unformat : function (cell, options ) {
return unformated_value;
then you will need just to set in colModel
colModel :[
…
{ name:'some', formatter:'myformatter'…},
]
Note that this formatter can be used everywhere in your code.
See the problem. I have added a 3 parameter to the unformat function (present in GitHub 3.6 branch)- cellobject, so you can use it in the custom unformat function like this $(cellobject).html() or whatever you want.
thanks tony!
Hi Tony,
I want to pass extra parameters to the server in addition to 'page','rows','sord','sidx'.
Please specify what should I do.
Regards,
Kedar
Hello
@Kedar a good start is a documentation.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS