ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: dreams on April 02, 2020, 08:19:02 am

Title: Table export problem!
Post by: dreams on April 02, 2020, 08:19:02 am
                            title: "增幅",
                            width: 70,
                            dataType: "float",
                            align: "right",
                            dataIndx: "XSZZL",
                            format: function (val) {
                                if (val <= 0) {
                                    return redblack + val +'%'+ endblack;
                                } else {
                                    return black + '+' + val + '%'+endblack;
                                }

                            }
After the data has been formatted, the export is like this

<a style="">&nbsp;+35.29%</a>
Title: Re: Table export problem!
Post by: paramvir on April 02, 2020, 09:00:07 am
What are redblack and endblack variables?

There are no <a> tags in your code, so they seem to be added in column.render callback.

Could you please share complete code via a jsfiddle.