[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Behavior of getColumnIndexOfLastSelection() FIXGRIDListBinding  XML
Forum Index -> Development
Author Message
eckel

Active

Joined: 04/11/2009 16:05:14
Messages: 5
Offline

The method getColumnIndexOfLastSelection() should return the the last selected column index as integer. It works correct if the Grid has several rows and you change the row-selection at the same time while you click to a certain gridcell. But if gridcells within the same row are selected in sequence via single mouse-click, then getColumnIndexOfLastSelection() returns with -1 or with the column-index that was selected while the last row selection. Can getColumnIndexOfLastSelection() work independent of the row selection ?
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,

the demo workplace's text tells about the background:

Code:
 ...
 And, please note: the default behaviour of the grid is, that once a row was selected the next selection is not passed to the server side. You can override this default behaviour by using the attribute FIXGRID-RESELECTABLE. If you want your user to select different columns, one after the other, within the same grid, you need to swt FIXGRID-RESELECTABLE to "true".
 ...
 


The grid always a bit has the dilemma: do not send too many info in order to avoid roundtrips.

Regards! Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

...oops this is not readable...

Once again:
Code:
 And, please note: the default behaviour of the grid is, 
 that once a row was selected the next selection is not passed 
 to the server side. You can override this default behaviour 
 by using the attribute FIXGRID-RESELECTABLE. 
 If you want your user to select different columns, one after the other, 
 within the same grid, you need to set FIXGRID-RESELECTABLE to "true".
 


Björn

Björn Müller, CaptainCasa GmbH
eckel

Active

Joined: 04/11/2009 16:05:14
Messages: 5
Offline

OK, Thank you very much. It works.

Regards
M.Eckel
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team