How to prevent a particular item from left to right using code on server side or by using javascript on client side.
Eg: If user want to move 'Argentina' from left to right,i want to prevent and show an alert message saying "It is not possible"
RoleSelectedListBox = new RadListBox();
RoleSelectedListBox.ID = "RoleSelectedListBox";
RoleSelectedListBox.TabIndex = 1;
//RoleSelectedListBox.CssClass = "RoleSelectedListBoxStyle";
RoleSelectedListBox.SelectionMode = ListBoxSelectionMode.Multiple;
RoleSelectedListBox.AllowTransfer = true;
RoleSelectedListBox.TransferToID = "RoleAvailableListBox";
RoleSelectedListBox.Skin = "FuzeCustom";
RoleSelectedListBox.EnableEmbeddedSkins = false;
RoleSelectedListBox.EnableDragAndDrop = true;
RoleSelectedListBox.EnableMarkMatches = true;
RoleSelectedListBox.Sort = RadListBoxSort.Ascending;
RoleSelectedListBox.SortItems();
Please try with the below code snippet.
Client Side
JS
ASPX
Server Side
ASPX
ASPX.CS