日期:2014-05-17 浏览次数:21080 次
<?xml version="1.0" encoding="gbk"?>
<data>
<item id='1'>
<percentage>35</percentage><area>崇明岛</area>
</item>
<item id='2'>
<percentage>50</percentage><area>奉贤区</area>
</item>
<item id='3'>
<percentage>65</percentage><area>松江区</area>
</item>
<item id='4'>
<percentage>30</percentage><area>杨浦区</area>
</item>
<item id='5'>
<percentage>45</percentage><area>虹口区</area>
</item>
<item id='6'>
<percentage>45</percentage><area>宝山区</area>
</item>
<item id='7'>
<percentage>85</percentage><area>金山区</area>
</item>
<item id='8'>
<percentage>35</percentage><area>普陀区</area>
</item>
<item id='9'>
<percentage>75</percentage><area>徐汇区</area>
</item>
<item id='10'>
<percentage>85</percentage><area>嘉定区</area>
</item>
</data>
var grid = new dhtmlXGridObject('grid');
grid.setImagePath("dhtmlxGrid/codebase/imgs/");
grid.setHeader("企业类型,进货量,交易量,进销比对率(%),达标差异,警示状态,进货记录(条),交易状态(条)");
grid.setInitWidths("*,100,100,100,100,100,100,100");
grid.setColAlign("left,right,right,right,right,right,right,right");
grid.setColTypes("ed,ed,ed,ed,ed,ed,ed,ed");
grid.setColSorting("str,int,int,int,int,str,int,int");
grid.setSkin("dhx_skyblue");
grid.init();
grid.loadXML("dhtmlxGrid/samples/common/grid_dates.xml");
<?xml version="1.0" encoding="gbk"?>
<rows>
<row id="1">
<cell>企业1</cell>
<cell>2000</cell>
<cell>1900</cell>
<cell>90</cell>
<cell>1900</cell>
<cell>无</cell>
<cell>1900</cell>
<cell>1900</cell>
</row>
<row id="2">
<cell>企业2</cell>
<cell>2000</cell>
<cell>1900</cell>
<cell>90</cell>
<cell>1900</cell>
<cell>无</cell>
<cell>1900</cell>
<cell>1900</cell>
</row>
<row id="3">
<cell>企业3</cell>
<cell>2000</cell>
<cell>1900</cell>
<cell>90</cell>
<cell>1900</cell>
<cell>无</cell>