0

Grid Row with no viewable cell because previous Row setRowSpan

asked 2012-09-29 17:34:39 +0800

kbsimm gravatar image kbsimm
153
http://www.ArivX.com/

Referring to my previous post non uniform rowSpans in a grid produces extra column I would like to modify the output so that some rows have no wholly encompassed cell as follows:


          col 1           col2            col3
      +---------------+---------------+---------------+
Row 1 |               |               | SSArt 011     |
      +               +               +---------------+
Row 2 |               | SArt 01       |               |   <----- Col 3 Row 2 spans 2 rows
      +               +               + SSArt 012     +
Row 3 |  Art 0        |               |               |   <----- Row 3 has no individual cells shown
      +               +---------------+---------------+
Row 4 |               |               | SSArt 011     |
      +               + SArt 02       +---------------+
Row 5 |               |               | SSArt 011     |
      +---------------+---------------+---------------+


When processing row 2 col 3 is given a rowSpan of 2. Then when processing row 3 no row and thus cells are produces by the call to newRow(RowRenderer) from GridDataLoader. But looking at GridDataLoader I see that if the RowRendererExt doesn't produce a row then a row is produced automagically by GridDataLoader. And it appears that since all locations in Row 3 are already occupied the cell produced for row 3 is placed to the right of row 2 thus creating a new column.

I have tried producing a row 3 in the RowRenderer and setting row.setVisable(false). This results in the row text being blank but still displays the space for the row in the 4th column.

I do not see a way to override the row production and just not produce a row #3.

Any suggestions would be appreciated.


Thank you

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-09-29 19:22:33 +0800

kbsimm gravatar image kbsimm
153
http://www.ArivX.com/

The link shows a view of our application coded in Swing.

SRP Day View

The smallest individual box is a cell as seen in the first 3 rows not counting the headers. The 4th row aligned with 7:15 is the beginning of cells that span more then one row for all three columns. And the 5th row has no individual cells shown.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-09-29 17:34:39 +0800

Seen: 65 times

Last updated: Sep 29 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More