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

Drag-n-drop from listview in content page to a control in master page

1 Answer 22 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Dheeraj
Top achievements
Rank 1
Dheeraj asked on 27 Feb 2013, 05:32 PM
Hi - i have a requirement very similar to what is achieved in http://demos.telerik.com/aspnet-ajax/listview/examples/itemdragdrop/defaultcs.aspx.

However, the main difference in my case is that the control to which i would drop my items (equivalent of Genre list shown in the right in the above link) is located in the master page and my list view is located in the content page.

When i drag the listview item onto the masterpage control, the destination is null. I used 
args.get_destinationItem()
in
OnClientDropped
event to get the destination item. If i drag the listview item onto any other control in the same page, the destination gets the proper value.

Is there a work-around to this problem. Am i missing something here?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 Mar 2013, 04:20 PM
Hello,

For your case I would suggest that you combine the Genre list and list view in one page(master page or content page). There are two reasons that require this approach:
  1. You can not obtain a reference to the list in master page as you already noticed
  2. Even if you obtain the reference using some kind of hack this will lead to vulnerabilities in the implementation.

Regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ListView
Asked by
Dheeraj
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or