I am trying to do a bulk insert items from one radlistbox to another radlistbox. In my javascript code, I am getting all the checkeditems from the first listbox (which returns an array) and trying to insert them into the destination (provision) listbox.
function SetProvisions(RadListBoxArray) {
var RadListBoxCount = RadListBoxArray.length;
var i = 0;
var ProvisionListBox = $find("<%= uxProvisions.ClientID %>");
for (i = 0; i < RadListBoxCount; i++) {
var RadListBox = RadListBoxArray[i];
var RadListBoxCheckedItems = RadListBox.get_checkedItems();
ProvisionListBox.insertItems(RadListBoxCheckedItems); <<<<Getting error here
}
ProvisionListBox.commitChanges();
}
Getting error stating that "Array of RadListBox items or Telerik.Web.UI.RadListBoxItem collection should be passed."