EasyUI Forum

General Category => Bug Report => Topic started by: mzeddd on March 29, 2012, 06:38:25 AM



Title: Zero '0' value in footer row is not visible
Post by: mzeddd on March 29, 2012, 06:38:25 AM
Zero '0' value in footer row is not visible

When my PHP script returns following line
Code:
echo '{"total":0,"rows":[],"footer":[{"tcName":"Total number of TC:","tcSlogan":0,"iconCls":"icon-sum"}]}';
In footer of my treegrid object I see only "Total number of TC:"

But when counter is not zero '0' then I see footer as expected
Code:
echo '{"total":123,"rows":[],"footer":[{"tcName":"Total number of TC:","tcSlogan":123,"iconCls":"icon-sum"}]}';
"Total number of TC: 123"


Title: Re: Zero '0' value in footer row is not visible
Post by: stworthy on March 29, 2012, 06:41:18 PM
Yes, it is the bug due to the treegrid view. This bug has been fixed, include the attach patch file please:

Code:
	<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script type="text/javascript" src="../treegrid-view-fix.js"></script>


Title: Re: Zero '0' value in footer row is not visible
Post by: mzeddd on March 30, 2012, 11:02:18 AM
It works,

Thanks!