[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Drag&Drop with ComboField  XML
Forum Index -> Development
Author Message
phauser



Joined: 05/06/2008 09:11:13
Messages: 2
Offline

Hi Björn,

we've tried to apply the drag and drop functionality to a combo field within a flex grid.
It's seems that a combo field could only be used as a "receiver-object" (drop) and not as a "sender" (drag).

Could you please check.

Thank's
Peter
CaptainCasa

Power User
[Avatar]

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

Hi,

we checked, and believe it works perfectly ;-)

Well, there is one thing to pay attention to: if the dragsend contains the acutal value of the selected combobox then you need to flush the combobox when the user changed it so that the dragsend is rebuilt on server side. This means: in the from-combobox, set "flush" to "true".

If you do not want to flush (roundtrip opimitzation) then you can set as dragsend something like "combofrom:dummy", and as doprereceive "combofrom". In the event processing on server side you then need to pick the combofrom-value and tranfer it to the other combobox. Remember: all set-property-operations are executed before the actionListener processing, so first the fromcombobox's value is set, and then the drop processing is ececuted.

Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

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

...next update (mo) will contain examples showing the usage with fields and comboboxes....

Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team