Listview drag and drop in an radajaxpanel

2 posts, 0 answers
  1. Fredrik
    Fredrik avatar
    1 posts
    Member since:
    Sep 2013

    Posted 27 Sep 2013 Link to this post


    I have a listview where I have implemented drag and drop where the dropevent is triggered in Javascript. When I have the RadAjaxPanel property EnableAJAX="False" set to False it works and performs a complete request. For the panel I have OnAjaxRequest="manager_ajaxrequest". 

    The Javascript either triggers one of these two depending if I am using ajax=true (first one) and second one when ajax=false.
    $find("<%= MyPanel.ClientID%>").ajaxRequestWithTarget("<%= MyPanel.UniqueID %>", pData);
    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(pData);

    The drop is on a different div in the listview to order them in a custom order. Any input on what to do? Is a different event triggered? Any input is appreciated to make it work in ajax-mode.

    Regards, Fredrik.
  2. Angel Petrov
    Angel Petrov avatar
    1153 posts

    Posted 02 Oct 2013 Link to this post

    Hello Fredrik,

    From the information provided it seems that both a RadAjaxPanel and a RadAjaxManager are being used. Could you ensure that the ListView is not updated by both of the controls? This is a potentially problematic scenario as nested update panels will create. We recommend the use of only one of the mentioned controls for ajaxification(more information on this subject can be found here). If that is not the case I would like to ask you to show us the code of the problematic page so we could investigate further what is causing the problem.

    Angel Petrov
    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 the blog feed now.
Back to Top