This topic contains 3 replies, has 2 voices, and was last updated by Hristo 10 years ago.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › General Discussions › Lists › ListBox › Add Object to Item
Tagged: Angular listbox, bootstrap listbox, javascript listbox, jQuery ListBox, jqwidgets listbox, jqxListBox
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 10 years ago.
How to add a object to a Listbox Item so when it’s dragged between listboxes the object goes along?
Hello edilsonamaral,
Could you explain in more detail. What kind of object you want to drag and drop?
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
like this array
var item = {
videoname: ‘Main’,
video_id: 0,
msg_id: 0,
uid: 0
};
Hello edilsonamaral,
You could set DataAdapter for your listboxes with desirable fields.
(for ex.
...
datafields: [
{ name: 'videoname' },
{ name: 'video_id' },
{ name: 'msg_id' }
],
and need to set ‘displayMember’ and ‘valueMember’ in the ListBoxes)
Please, take a look at this example:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxlistbox/dragdrop.htm?arctic
There could find out how to set dragStart and dragEnd callbacks and you could use item.originalItem to get a concrete object.
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
You must be logged in to reply to this topic.