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

4 posts, 0 answers
  1. kedarnath
    kedarnath avatar
    8 posts
    Member since:
    Sep 2012

    Posted 04 Mar 2011 Link to this post

    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..
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Mar 2011 Link to this post

    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!
  3. DevCraft banner
  4. kedarnath
    kedarnath avatar
    8 posts
    Member since:
    Sep 2012

    Posted 11 Mar 2011 Link to this post

    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....
  5. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 11 Mar 2011 Link to this post

    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!
Back to Top