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

2 posts, 0 answers
  1. Dheeraj
    Dheeraj avatar
    1 posts
    Member since:
    Jan 2011

    Posted 27 Feb 2013 Link to this post

    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 
    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?

  2. Pavlina
    Pavlina avatar
    6183 posts

    Posted 04 Mar 2013 Link to this post


    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.

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