HI
I am using Inartistic web drop down and I have set Multiple selection set to true . And I need to Copy the Current Value of a Web Drop down in to Clip Board and popup should come and then user can Paste it in another web drop down for searching the contents . Can anybody please help to resolve this issue in all browsers .
Hello,
If you need any further assistance with the matter, please feel free to contact me.
Hi Sujay,
Please make sure you set DisplayMode to DropDown and EnableCustomValues tp true for the second dropdown.
Hope this helps.
Hi
I checked your code but I can only select items but not able to paste. I want to use DOS copy command in Java Script.
Please give me a solution.
Hello Sujay,
I'm just checking if you have resolved your issue.
You can achieve this, for example using the ValueChanged client-side event of the second dropdown to iterate through its items and select these that match one of the pasted values:
function onValueChanged(sender, e) { //get the pasted values (works for separator ',') var values = e.getNewValue().split(','); for (var i = 0; i < sender.get_items().getLength(); i++) { for (var j = 0; j < values.length; j++) { var item = sender.get_items().getItem(i) if (item.get_text() == values[j]) { item.select(); } } } }
Let me know if this helps.