-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hello everyone i have this scenario:
i would like drag listitem of my listbox in tree to build it. when i drop listitem in tree fires event but get object dragged empty maybe it happens because i have 2 different component
public void onEvent(Event event) throws Exception {
if (event instanceof DropEvent) {
DropEvent de = (DropEvent) event;
ListItem item = (ListItem) de.getDragged();
got item null
I think u can add the selected item to the tree and remove it from the list like:
public void onEvent(@BindingParam("event") final Event event)
{
treeModel.add(event)
listModel.remove(event)
}
Asked: 2017-10-26 18:40:06 +0800
Seen: 4 times
Last updated: Jan 24 '18
Drag-drop custom image when hoovering
Auto scroll in the browser when dragging
[Small Talks] new ZK Splitter - Splitpane
[Announcement] ZK 8.0.4 released
too much space using frozen on the listbox
[Announcement] Understanding ZK MVVM: Todo CRUD example
ZK7 TreeDataEvent.SELECTION_CHANGED possible bug
can you reproduce this in a fiddle and post fiddle link here?
chillworld ( 2018-01-24 18:23:13 +0800 )edit