2

Is it possible to user Dojo GridX with some kind of row headers or rowspan?

I want to present the hierarchical (2-level) structure in the grid - a grouping item has some subitems, such like:

---------------------------|
|             | Address 1  |
| Customer 1  |------------|
|             | Address 2  |
---------------------------|
|             | Address 1  |
| Customer 1  |------------|
|             | Address 2  |
---------------------------|

In pure HTML it's one of the methods described in http://www.pdprogrammeur.com/tables-and-html5-table/ but for Dojo GridX I couldn't find any such example.

Is such functionality supported in GridX? If so, how to use it?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Web Devie
  • 1,207
  • 1
  • 13
  • 30
  • Ive looked for such function myself and was unable to find it :-( – Kolban Nov 06 '13 at 14:59
  • When set up your 'structure' of the grid, I believe you can have multiple arrays: http://dojotoolkit.org/reference-guide/1.9/dojox/grid/DataGrid.html So you might do `var layout = [[address1],[address2]];` in some fashion. Also consider multi-rowed rows: http://dojotoolkit.org/reference-guide/1.9/dojox/grid/DataGrid.html#multi-rowed-rows – Robb Nov 06 '13 at 15:06

1 Answers1

2

The colspan is not available for gridx, we may plan to implement it in the future version.

gee
  • 72
  • 4
  • You're a GridX team member? Is there a ticket for that change? If so, it would be an answer (documented on script :) – Web Devie Apr 30 '14 at 11:44