hi folks,
i've this code:
<telerik:RadListBox ID="lista1" runat="server" Height="230px" Width="250px" TransferToID="lista2" SelectionMode="Multiple"/>
<telerik:RadListBox ID="lista2" runat="server" Height="230px" Width="250px" SelectionMode="Multiple" />
<asp:Button ID="btnTransferRight" OnClientClick="return trasferisciBoxDestra()" Text=">>" runat="server" />
where in javascript i've this function:
function trasferisciBoxDestra() {
var listbox = $find("<%= lista1.ClientID %>");
var elemSelezionato = listbox.get_selectedItem();
if (elemSelezionato == null) {
alert("Bisogna selezionare almeno un elemento.");
return false;
}
listbox.transferToDestination(elemSelezionato);
return false;
}
How can i select different items with control button and send them by "transferToDestination" method pass it an array?
thanks in advance.
i've this code:
<telerik:RadListBox ID="lista1" runat="server" Height="230px" Width="250px" TransferToID="lista2" SelectionMode="Multiple"/>
<telerik:RadListBox ID="lista2" runat="server" Height="230px" Width="250px" SelectionMode="Multiple" />
<asp:Button ID="btnTransferRight" OnClientClick="return trasferisciBoxDestra()" Text=">>" runat="server" />
where in javascript i've this function:
function trasferisciBoxDestra() {
var listbox = $find("<%= lista1.ClientID %>");
var elemSelezionato = listbox.get_selectedItem();
if (elemSelezionato == null) {
alert("Bisogna selezionare almeno un elemento.");
return false;
}
listbox.transferToDestination(elemSelezionato);
return false;
}
How can i select different items with control button and send them by "transferToDestination" method pass it an array?
thanks in advance.