jQWidgets Forums
Forum Replies Created
-
Author
-
July 4, 2012 at 8:43 am in reply to: Drag and Drop between Listboxes in iOS Drag and Drop between Listboxes in iOS #5640
Hi David,
I had same requirement as you. so used function of jqwidgets to achieve the same. Below is the code to move selected item to another listbox.
var moveSelectedItemsRight = function () {
var items = $(“#listBoxA”).jqxListBox(‘getSelectedItems’);//var selection = new Array();
var selection = new Array(items.length);
for (var i = 0; i < items.length; i++) {selection[i] = { label: items[i].label, value: items[i].value };
var str = $("#selectedIds").val(); // get selected ids
var val = items[i].value+',';
if(str.search(val) == -1){
$("#selectedIds").val(str.concat(val));
}}
$("#listBoxB").jqxListBox({ source: selection, multiple: true, width: 261, height: 228 });
}$("#singleLeft").bind('click', function () {
moveSelectedItemsRight();
});Hello,
is anybody there to help me out?
June 13, 2012 at 10:47 am in reply to: How to original index of array How to original index of array #4893Hi,
As you know, I have to access the value of selected item so its necessary to build the array in your given format. But when my ajax request goes, I am building the array in label, value format to access the value but json dont process it the way it should do.
Shall I need to use json_encode() in php action.
Thanks in advance.
June 12, 2012 at 11:56 am in reply to: How to original index of array How to original index of array #4848Thanks, worked fine after a lot trail.
June 1, 2012 at 12:59 pm in reply to: How to drag multiple selected item to another list box How to drag multiple selected item to another list box #4533Also my client gonna buy Enterprise License + Premium Support + Source Code license. So could you please provide us this feature in that license?
June 1, 2012 at 12:52 pm in reply to: How to drag multiple selected item to another list box How to drag multiple selected item to another list box #4532Thanks for reply. but I want this feature as my client is sticked to jqwidget and wants this feature. Please let me know what I can do?
-
AuthorPosts