EasyUI Forum
October 10, 2024, 11:32:23 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Zero '0' value in footer row is not visible  (Read 17025 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« 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"
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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>
« Last Edit: March 29, 2012, 06:43:05 PM by stworthy » Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: March 30, 2012, 11:02:18 AM »

It works,

Thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!