[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
ArrayGrid within ButtonPopup  XML
Forum Index -> Development
Author Message
bzeuner

Power User

Joined: 28/02/2011 17:12:24
Messages: 59
Offline

Hi there,

I use an ArrayGrid within the ButtonPopup-Component. But when the grid is very large and I need to scroll then the popup closes automatically. Even if I click on the scrollbar to move it down/up it closes.

Is there a possibility to prevent this behavior and only close the popup if a row was executed?

Greets
Ben
CaptainCasa

Power User
[Avatar]

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

Hi,

there is an attribute CLOSEONROUNDTRIP which by default is "true". If you set to "false" then the dialog does not close.
BUT: be aware of the restrictions of BUTTONPOPUP in general: you must not use any comboboxes or any other popups inside. If you have this, then better use modeless dialogs, without border, and with "closeonclidkoutside" set to "true".

Regards, Björn

Björn Müller, CaptainCasa GmbH
bzeuner

Power User

Joined: 28/02/2011 17:12:24
Messages: 59
Offline

hey,

unfortunately this attribute only works if I use the scrollbar directly. If I use my scroll wheel the popup still closes. If there is no easy way to fix that, I will use the modeless dialogs, but the buttonpopup is much handy

Greets
CaptainCasa

Power User
[Avatar]

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

Hi,

this seems to be something, which is part of Swing: menu popups close when the mouse wheel is spinned. Do not ask me for any reason ;-)

I am not yet sure if we can somehow suppress this behaviour, so better use ModelessPopup...

Regards, Björn

Björn Müller, CaptainCasa GmbH
bzeuner

Power User

Joined: 28/02/2011 17:12:24
Messages: 59
Offline

No problem,
thanks!
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team