Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » 2.2 M3 rowTemplates - columns and vertical lines(How to NOT how columns and vertical lines with rowTemplates)
2.2 M3 rowTemplates - columns and vertical lines [message #1188404] Fri, 15 November 2013 16:14 Go to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
Hi (Ralf?!)
Just playing with rowTemplates already.
I've got a basic one working with textCells.
However, I'm getting my column headings and column dividers still appear, and am not quite sure how you anticipated them appearing.
Basically, I create my table exactly as previous (before rowTemplates), with column headings, widths etc. etc.
Then I apply a rowTemplate.
Here is an example screenshot:
index.php/fa/16747/0/
Note that the data is displayed correclty - honouring the textCell properties - I simply staggered their Y positions to prove that it was taking the template details.

However, 2 questions...

1) the overall table still has column headings which I assume you anticipate should not be used when using templates?
e.g.
tree.setHeaderVisible(false);

is that correct?

and
2) what to do about column dividing lines?
If I simply do:
tree.setLinesVisible(false);

...then this doesn't really work, as I lose the horizontal lines too, and the alternate line colours.
Should I simply make the column1 width very wide?
How do you anticipate this working?

Thanks, John



---
Just because you can doesn't mean you should
Re: 2.2 M3 rowTemplates - columns and vertical lines [message #1188728 is a reply to message #1188404] Fri, 15 November 2013 19:51 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi John,

yes, we thought that column headers wouldn't make a lot of sense when
used together with row templates (do they?) and anticipated that they
would not be turned on (headerVisible is false by default).

You need to create Table/TreeColumns, as item texts/images for columns
will otherwise be ignored. However, you should not apply a width to the
columns, otherwise you could get a horizontal scrollbar.

When you use row templates, the default theme will not display vertical
gridlines (it respects the new state :rowtemplate). If you have custom
theme, you might need to update it to this change [1].

You find an row templates example in our online demo [2] running on M3,
example code: [3].

Cheers,
Ralf


[1]
https://github.com/eclipse/rap/commit/dcca3e7ea054297dd1a8121ffcfabc39d5e7e965

[2] http://rap.eclipsesource.com/rapdemo/examples#table-template

[3]
https://github.com/eclipse/rap/blob/2.2.0-M3/examples/org.eclipse.rap.examples.pages/src/org/eclipse/rap/examples/pages/RowTemplateExample.java

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: 2.2 M3 rowTemplates - columns and vertical lines [message #1194050 is a reply to message #1188728] Mon, 18 November 2013 10:02 Go to previous message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
Hi Ralf,
Thanks, yes, all makes sense.
I've got it working as I'd expect now. Very nice... got a bit of work to do to take good advantage of it, but love the implementation. Can't wait until Tabris 1.2 when this makes it to mobile too. Great work!
Cheers, John


---
Just because you can doesn't mean you should
Previous Topic:[ANN] RAP 2.2 M3 is available
Next Topic:How to know the Table scroll bar has reached the end
Goto Forum:
  


Current Time: Thu Sep 19 20:02:42 GMT 2024

Powered by FUDForum. Page generated in 0.02979 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top