Hi All,
I have the following code:
And in the code behind i have :
But the problem is after the postback, the items of radlistbox2 is same as before. All the changes(adding/removing items) are lost. Please help me. Thanks.
I have the following code:
<
telerik:RadListBox
runat
=
"server"
ID
=
"RadListBox1"
AllowReorder
=
"true"
Height
=
"350px"
AllowTransferOnDoubleClick
=
"true"
SelectionMode
=
"Multiple"
AllowTransfer
=
"true"
TransferToID
=
"RadListBox2"
Width
=
"300px"
EnableDragAndDrop
=
"true"
Sort
=
"Ascending"
PersistClientChanges
=
"true"
>
</
telerik:RadListBox
>
<
telerik:RadListBox
runat
=
"server"
ID
=
"RadListBox2"
Width
=
"300px"
Height
=
"350px"
AllowTransferOnDoubleClick
=
"true"
SelectionMode
=
"Multiple"
EnableDragAndDrop
=
"true"
Sort
=
"Ascending"
PersistClientChanges
=
"true"
>
</
telerik:RadListBox
>
And in the code behind i have :
For
i
As
Integer
= 0
To
RadListBox2.Items.Count - 1
-----------------
Next
But the problem is after the postback, the items of radlistbox2 is same as before. All the changes(adding/removing items) are lost. Please help me. Thanks.