EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Tomas on June 04, 2020, 09:11:13 AM



Title: datagrid with footer - issues with formater
Post by: Tomas on June 04, 2020, 09:11:13 AM
Hi,

  I'm having a issue with datagrid footer, and I use formatter on a field that value
now shows up in the footer.

Thanks,
Tomas


Title: Re: datagrid with footer - issues with formater
Post by: Tomas on June 04, 2020, 10:26:31 AM
I found a solution,
I added a check for a know field

Code:
                        formatter:function(value,row,index) {
                            if (typeof row.item === "undefined") {
                                return;
                            }

                            return row.item;
                        },

-Tomas