0

SetDraggable doesn't work

asked 2018-04-03 23:47:37 +0800

MRMorina gravatar image MRMorina
1

Hi, I set PortalLayout.setDraggable("false"); but doesn't work. It does not work either on PortalChildren and Panel. Anybody have some suggestions?

Thanks

delete flag offensive retag edit

Comments

can you elaborate on the desired result? what doesn't work... to me it looks like you are trying to disable dragging of the whole portal layout component... so it should not be draggable in the end (which it shouldn't be by default). This setting doesn't affect the panels inside the layout.

cor3000 ( 2018-04-10 15:12:24 +0800 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2018-04-10 15:16:31 +0800

cor3000 gravatar image cor3000
4293 1 7
ZK Team

here an example disabling draggable for some of the panels inside a portallayout:

http://zkfiddle.org/sample/v1mecs/1-non-draggable-panels-in-portallayout

maybe that's what you were looking for

link publish delete flag offensive edit
0

answered 2018-04-10 17:17:19 +0800

MRMorina gravatar image MRMorina
1

Thank you cor3000 for your replay. You're in right. I'm would like make the component (Portallayout, Portalchildren, Panel, Panelchildren) not draggable and not droppable. My page have this hierarchy : Portallayout > Portalchildren > Panel > Panelchildren. I set all properties into Java class by this statement: .setDraggable("false"); .setDroppable("false"); I put it after each component creation but it doesn't work at any. What do I wrong? Thanks

link publish delete flag offensive edit
0

answered 2018-04-10 18:05:15 +0800

cor3000 gravatar image cor3000
4293 1 7
ZK Team

updated 2018-04-10 18:15:52 +0800

here an updated example using java... http://zkfiddle.org/sample/v1mecs/2-non-draggable-panels-in-portallayout

if you could share some runnable code I might be able to tell what's going wrong with it.

maybe my example already points you in the right direction

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2018-04-03 23:47:37 +0800

Seen: 10 times

Last updated: Apr 10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More