简体   繁体   English

Ajax网格字段分组

[英]Ajax Grid field grouping

I research modern Ajax Grids capable of grouping rows by fields (into collapsible sections), in a manner similar to ExtJs Grid grouping . 我研究了能够按字段 (按可折叠部分的形式) 对行进行分组的现代Ajax网格,其方式类似于ExtJs网格分组

Important requirements to such a grid is not only grouping, but sorting by multiple fields, eg by country and gender. 对这种网格的重要要求不仅是分组,而且还需要按多个字段(例如,按国家和性别)进行排序。 Ideally user needs to be able to select fields to group by (sort by) dynamically. 理想情况下,用户需要能够选择要动态分组的字段。 I don't expect grids to do it, but knowing that given Ajax grid at least allows to build such a feature would be good. 我不希望网格能够做到这一点,但是知道给定的Ajax网格至少允许构建这样的功能会很好。

Such a grid exists in ASP.Net world - http://demos.devexpress.com/ASPxGridViewDemos/GroupingSorting/Grouping.aspx - see it allows dynamic grouping by dragging required columns to upper bar. 这样的网格存在于ASP.Net世界中-http: //demos.devexpresspress.com/ASPxGridViewDemos/GroupingSorting/Grouping.aspx-看到它可以通过将所需的列拖动到上方的栏中来进行动态分组。 But as PHP developer I am not sure such thing exists as pure js-lib or as some PHP library. 但是作为PHP开发人员,我不确定这种事情是否以纯js-lib或某些PHP库的形式存在。

What are other grids, except ExtJs grid, that support flexible/nested/dynamic field grouping, for using it in PHP? 除了ExtJs网格外,还有哪些其他网格可在PHP中使用它来支持灵活/嵌套/动态字段分组?

jqgrid does! jqgrid确实! I use it for adjacency lists and nested sets.. you can also do the whole expanding thing too: 我将它用于邻接列表和嵌套集。您也可以做整个扩展的事情:

http://trirand.com/jqgrid/jqgrid.html http://trirand.com/jqgrid/jqgrid.html

  1. (click Advanced => Subgrid) (单击高级=>子网格)
  2. (click New in version 3.4 => Tree Grid Adjacency model) (在版本3.4中单击“新建” =>“树状网格邻接模型”)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM