|Non-editable Grid columns? [message #575036]
||Fri, 19 January 2007 12:22
| Johan Kannala
Registered: July 2009
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.
Powered by FUDForum
. Page generated in 0.03952 seconds