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

Drag a record using image in it onto a button which opens a new window

3 Answers 16 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
kedarnath
Top achievements
Rank 1
kedarnath asked on 04 Mar 2011, 07:23 AM
Hello,
I have a form(inside radwindow) with an image  which specifies a user record information which does quick registration.my requirement happens to be:

when i drag the record using the image and drag it on to complete registration icon i got to open the complete registration window with the patient record information in that window which i captured in quick registration window.

Could you please help me in this regard by giving out a sample.im placing icon on a button.i.e drop on button.

Thanks in advance..

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Mar 2011, 05:03 PM
Hi,

 I believe that you can execute the same code (the code in your button click event handler) on drop. Have you tried this? 

Regards,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
kedarnath
Top achievements
Rank 1
answered on 11 Mar 2011, 09:39 AM
Dear vlad,
Thanks for the reply.
I tried it by dragging a record from a listbox and dropping it on button.
I did put the drop code in button click event and im successful.
the problem now is how to put patient object in the payload when i drag the patient(using his image or some control like thing in the form which displays patient infomation) and drop on to other icons to proceed with further actions like scheduling an appointment.i want to carry patient context.
Could you give a sample and help me in this regard.this is very urgent.
Thanks in advance....
0
Tsvyatko
Telerik team
answered on 11 Mar 2011, 10:27 AM
Hi kedarnath,

To assign the payload to you underlying object you need to get it from the source dragged element (I assume in your scenario this is litboxitem) and get its datacontext or get the selected item from the source listbox. This can be done in the  DragInfo event. You might want to check this help article for further information - http://www.telerik.com/help/silverlight/raddraganddrop-from-radgridview-to-listbox.html

All the best,
Tsvyatko
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
DragAndDrop
Asked by
kedarnath
Top achievements
Rank 1
Answers by
Vlad
Telerik team
kedarnath
Top achievements
Rank 1
Tsvyatko
Telerik team
Share this question
or