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

Listview drag and drop in an radajaxpanel

1 Answer 14 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 1
Fredrik asked on 27 Sep 2013, 08:19 AM
Hi,

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);
or 
$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.

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 02 Oct 2013, 06:44 AM
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.

Regards,
Angel Petrov
Telerik
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.
Tags
ListView
Asked by
Fredrik
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or