EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: magicloud on August 17, 2012, 01:36:59 AM



Title: datagrid column formatter does not work with edatagrid?
Post by: magicloud on August 17, 2012, 01:36:59 AM
I am following the editable datagrid tutor, everything was fine.
Then I try to make one column from plain text to link. I just added formatter attribute to that column, then it seemed to stop working. The grid displayed as a 0 sized line since there was no data in it but a few divs.
What should I do?


Title: Re: datagrid column formatter does not work with edatagrid?
Post by: stworthy on August 19, 2012, 06:31:22 PM
The column formatter work fine with edatagrid. Could you post some part of your test code?


Title: Re: datagrid column formatter does not work with edatagrid?
Post by: magicloud on August 21, 2012, 08:06:46 PM
The column formatter work fine with edatagrid. Could you post some part of your test code?

Ah, I see. Sorry my lacking knowledge of Javascript. I need to write it like this:
<th formatter="(function(value, row, index){})"/>