Hi Telerik,
This looks to be a fairly straight forward thing, be I cannot seem to detect which Arrow (To Right or To Left) have been clicked on the OnTransferred event (server-side).
Here is some sample codes:
Based on the type of transfer, a delete or insert operation will the be carried out into the database, all in the code-behind page(server side)
Furthermore, this same scenario will be applied for the OnDropped events.
Thanks
This looks to be a fairly straight forward thing, be I cannot seem to detect which Arrow (To Right or To Left) have been clicked on the OnTransferred event (server-side).
Here is some sample codes:
<
telerik:RadListBox
runat
=
"server"
ID
=
"listBoxSourceOS"
Height
=
"200px"
Width
=
"230px"
OnDropped
=
"listBoxSourceOS_OnDropped"
ButtonSettings-ShowTransferAll
=
"false"
EnableDragAndDrop
=
"true"
AutoPostBackOnTransfer
=
"true"
OnTransferred
=
"ListBoxSourceOS_OnTransferred"
AllowTransfer
=
"true"
TransferToID
=
"listBoxDestinationOS"
>
</
telerik:RadListBox
>
<
telerik:RadListBox
TransferToID
=
"listBoxSourceOS"
Height
=
"200px"
ID
=
"listBoxDestinationOS"
AutoPostBackOnTransfer
=
"true"
AllowTransfer
=
"true"
runat
=
"server"
Width
=
"230px"
/>
protected
void
ListBoxSourceOS_OnTransferred(
object
sender, RadListBoxTransferredEventArgs e)
{
//((Telerik.Web.UI.RadListBoxItem[])(e.Items))[0].Value
if
(e.Items !=
null
)
{
//Insert new item
//Refresh List
}
}
Based on the type of transfer, a delete or insert operation will the be carried out into the database, all in the code-behind page(server side)
Furthermore, this same scenario will be applied for the OnDropped events.
Thanks