使用FlexiGrid实现Extjs表格效果方法分享(2)


<script type="text/javascript">
     $("document").ready(function() {
         $('#flexme1').flexigrid({
             colModel: [
             { display: 'ISO', name: 'iso', width: 40, sortable: true, align: 'center' },
             { display: 'Name', name: 'name', width: 180, sortable: true, align: 'left' },
             { display: 'Printable Name', name: 'printable_name', width: 120, sortable: true, align: 'left' },
             { display: 'ISO3', name: 'iso3', width: 130, sortable: true, align: 'left', hide: true },
             { display: 'Number Code', name: 'numcode', width: 80, sortable: true, align: 'right' }
             ]
         });
         $('#flexme2').flexigrid({
             colModel: [
             { display: 'ISO', name: 'iso', width: 40, sortable: true, align: 'center' },
             { display: 'Name', name: 'name', width: 180, sortable: true, align: 'left' },
             { display: 'Printable Name', name: 'printable_name', width: 120, sortable: true, align: 'left' },
             { display: 'ISO3', name: 'iso3', width: 130, sortable: true, align: 'left', hide: true },
             { display: 'Number Code', name: 'numcode', width: 80, sortable: true, align: 'right' }
             ],
             sortname: "iso",
             sortorder: "asc",
         });
     });
 </script>

自定义折叠,自定义排序的实现

使用FlexiGrid实现Extjs表格效果方法分享

复制代码 代码如下:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wgxxxs.html