Page 1 of 1

Grid/table with only row selection and keypress handling

PostPosted: Sun Jan 31, 2016 2:36 pm
by heindricke
I need for smart client data grid/table with this features:
  • readonly cells, clicking on any cell cause selection of row only (not cell). Text color stay black, not silver (problem with readOnly prop).
  • whole grid/table force event of keypress, especially enter key (cannot connect keypress plugin to grid, because grid is not element in Servoy elements).
Do you know any plugin, bean?

Re: Grid/table with only row selection and keypress handling

PostPosted: Mon Feb 01, 2016 10:27 am
by Peter de Groot
Hi,

readonly cells, clicking on any cell cause selection of row only (not cell). Text color stay black, not silver (problem with readOnly prop).


For that you could use labels, and use a style-sheet for color ect.
2016-02-01_0924.png
2016-02-01_0924.png (23.09 KiB) Viewed 3211 times


Regards

Re: Grid/table with only row selection and keypress handling

PostPosted: Mon Feb 01, 2016 11:41 am
by heindricke
Peter de Groot wrote:For that you could use labels, and use a style-sheet for color ect.

It looks very close to solution, but there is problem with plugins.keyListeners.

First press of "enter" key select cell and just second force keyPressed. I need to force keyPress on first pressing.
Code: Select all
plugins.keyListeners.addKeyListener(elements.customer_id, keypress, "keyPressed");