码迷,mamicode.com
首页 > 其他好文 > 详细

datagrid加分组后的效果

时间:2016-09-02 13:18:00      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

技术分享

html

  

<table id="dg"></table>

 

js

  

$(‘#dg‘).propertygrid({
                title: ‘‘,
                showGroup: "false",
                groupField: "monitoring_point_type",
                url: ‘/GIS/Map.aspx?GetMonitoringPoints=1‘,
                columns: [[
                    { field: ‘monitoring_point_name‘, title: ‘名称‘, width: 100 },
                     { field: ‘value‘, title: ‘名称‘, width: 100,hidden:true }
                ]],
                onLoadSuccess: function (data) {
                    loadMnUpToDateImg("" + data.rows[0].monitoring_point_mn + "");
                    points = data.rows;
                    addMarker(points);
                },
                groupFormatter: function (val) {
                    return mnType[val];
                },
                onClickRow: function (rowIndex, rowData) {
                    var gpsPoint = new BMap.Point(rowData.monitoring_point_longitude, rowData.monitoring_point_latitude);
                    map.centerAndZoom(gpsPoint, 18);
                    loadMnUpToDateImg("" + rowData.monitoring_point_mn + "");
                }
        });

 

datagrid加分组后的效果

标签:

原文地址:http://www.cnblogs.com/gaocong/p/5832847.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!