Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Non-editable Grid columns?
Non-editable Grid columns? [message #575036] Fri, 19 January 2007 12:22
Johan Kannala is currently offline Johan KannalaFriend
Messages: 3
Registered: July 2009
Junior Member

I'm using the Grid widget to store and edit data. Now, some of my
columns may need to be non-editable, something which simply is achieved
by not providing editors for these particular columns. So far, so good.

Check columns, however, don't necessarily need to have editors since
they are intrinsically clickable/editable. The question now is how I can
make them non-clickable/editable? Maybe the best way is to create a
custom renderer using the default checkbox renderer?
There is a "grayed" property in the grid item which makes the check box
render as gray, something which I would interpret as being disabled. Is
there possibly a particular way in which this is intended to be used?

Another (related) problem is that I would like to render my non-editable
columns in, say, a slightly different color. But since the default cell
renderer belongs to the grid.internal package, it is not possible to
simply inherit and modify, nor does the renderer provide any
"foreground" or "background" properties. In general I find it a bit
strange that the default renderers are hidden away in the internal
package, since it could be quite useful to have access to them.

Previous Topic:Using CompositeTable as a basic Table replacement
Next Topic:Using CompositeTable as a basic Table replacement
Goto Forum:

Current Time: Mon Sep 21 10:17:14 GMT 2020

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

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

Back to the top