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

OnRowDrop e.HtmlElement=="undefined" instead of "" (Empty)

3 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Noonecares
Top achievements
Rank 1
Noonecares asked on 02 May 2012, 03:11 PM
Hi everybody,

Iam starting this thread cause I couldnt find any answer to my problem in Google or this forum or somewhere else.
description:
I have got 3 Grids on my Page and want to drag a Item from Grid A and drop it on Grid B:
Grid A: source of drag
Grid B: target of drop
Grid C: test target of drop

My Grid C is an empty Grid without any special settings. Grid A is my source where I have some contact items listed. Grid B is wrapped into a telerik:RadAjaxPanel.
If I drag an item from Grid A and drop it on Grid C the eventargs in the codebehind in OnRowDrop looks like this:
? e
{Telerik.Web.UI.GridDragDropEventArgs}
    base {System.EventArgs}: {Telerik.Web.UI.GridDragDropEventArgs}
    DestDataItem: {Telerik.Web.UI.GridDataItem}
    DestinationGrid: {DotNetNuke.Web.UI.WebControls.DnnGrid}
    DestinationTableView: {Telerik.Web.UI.GridTableView}
    DraggedItems: Count = 1
    DropPosition: Above
    HtmlElement: ""

If I drag an item from Grid A and drop it on Grid B the eventargs looking like:
? e
{Telerik.Web.UI.GridDragDropEventArgs}
    base {System.EventArgs}: {Telerik.Web.UI.GridDragDropEventArgs}
    DestDataItem: null
    DestinationGrid: null
    DestinationTableView: null
    DraggedItems: Count = 1
    DropPosition: Above
    HtmlElement: "undefined"

This is only caused by the telerik:RadAjaxPanel if I remove the ajaxpanel it will work like in the first drag drop.
I alrdy read documentations here on telerik.com and looked into demos but couldnt find any answer to my problem.
I thought something about using the OnDragging method on client side to determine if the destination is wrapped by a telerik:RadAjaxPanel and react on this. For example setting the eventarg properties and filling it with the correct data on client side. (But this is just a guess I couldnt get it working)

It would be awesome if someone could help me with this problem.

best regards, noone.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 07 May 2012, 02:49 PM
Hi,

I attached a simple demo to this post. Please give it a try and let me know what I'm doing wrong as I'm unable to reproduce the problem.

Thanks,
Daniel
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.
0
Noonecares
Top achievements
Rank 1
answered on 09 May 2012, 04:41 PM
Hi Daniel,

thanks for your answer and your demo.
Its seams to be everything ok in your demo.
More information at this point concerning my problem and my infrastructure:
Iam using DNN 6.1.5 with Telerik 2011.3.1115.35.
Iam not using any implemented (easy) way of dragging and dropping items from one grid to another.
Ive got 2 Modules and want to drag an Item from module1 and drop it on module2. This is working cause I throw a InterModuleCommunication and reload the grid on the module2.
As I drop the item on the module2 I try to get all the information from the GridDragDropEventArgs to know what information I have insert in the module2.
If I wrapp the grid B into a telerik:RadAjaxPanel the GridDragDropEventArgs are empty as you can see from my first post.
RaisePostBackEvent("") is not possible to update this Panel. Iam not sure why. So I Think my problem why my GridDragDropEventArgs are empty is comming from the problem that I cant update the Panel.
A question at this point: does any ASP control concerning problems if its being wrapped into a telerik:RadAjaxPanel? cause if I use the ASP:UpdatePanel everything is working fine.
I have got a asp:multiview in the panel and the grid in this multiview. Maybe the multiview is the reason?
I am stuck here I cant see whats going on in that RadAjaxPanel and why its not updating.
Another question: is "RadAJAXPanel.RaisePostBackEvent("")" the same as "aspUpdatePanel.update()"?

thank you for any information. Iam searching for the reason meanwhile and hope I can find any to be able to post it here.

best regards, noone.
0
Daniel
Telerik team
answered on 15 May 2012, 12:20 PM
Hi,

It would be hard to determine what causes the problem in your scenario judging by the provided information. My recommendation would be to make a backup copy of your project and start stripping all the unnecessary code/markup/controls until you find the root of the problem.
As to the second question, please examine the Out-of-Panel Update section in our RadAjaxPanel topic.

Regards,
Daniel
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
Grid
Asked by
Noonecares
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Noonecares
Top achievements
Rank 1
Share this question
or