This is a migrated thread and some comments may be shown as answers.

To Find Values in RADLIST BOX drag and drop

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manishkumar
Top achievements
Rank 1
Manishkumar asked on 03 Feb 2011, 12:16 PM
Hi;
I am using RADLIST BOX drag and drop functionality.
My question is how can I find which value User has selected to Drag from One list box to another
For Example:
I have one Listbox as ListBox1 which contains value India,SriLanka,USA etc.... How Can I find user has selected India to drag and drop
from ListBox1 to ListBox2  and viceversa.

From ListBox1 to ListBox2  If I fire sever side event "OnTransferred" then I can easily track the value but my question is IF the user drag and drop some value like India from ListBox2  to ListBox1 how can I find this Value

Please Reply ASAP it is very Urgent 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Feb 2011, 01:09 PM
Hello ManishKumar,

Attach 'OnClientDragStart' event to RadListBox and try the following approach.

ASPX:
<telerik:RadListBox ID="RadListBox1" runat="server" OnClientDragStart="OnClientDragStart">

Java Script:
function OnClientDragStart(sender, args) {
       alert(args.get_sourceItem().get_text());
        
   }

Thanks,
Princy.
Tags
General Discussions
Asked by
Manishkumar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or