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

Drag and drop thousands of nodes between two radtreeviews

3 Answers 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Abbas
Top achievements
Rank 1
Abbas asked on 30 Oct 2013, 11:50 AM

Hello Sir,

I have two issues in the drag and drop functionality between two treeviews.
The drag and drop is going very smooth as long as I want drag and drop small number of nodes between the two treeviews ( for examples 10 nodes , some hunderts nodes or even few thousands nodes ).

Issue 1 :
When I try to drag and drop for more than few thousands of nodes between the two treeviews, I got the error which say (Maximum request length exceed).

Issue 2:
When I drag and drop really huge number of nodes like ( 300000 nodes for example ) , usually the error is ( not enough memroy or out of memroy)

So please advise me what can I do in both cases because these cases are valid scenarios in my application.

I will be waiting for your reply.

Regards,
A.Abbas 

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 04 Nov 2013, 01:19 PM
Hello Abbas,

I would like to clarify that it is quite possible to face problems with drag and drop huge amounts of nodes  between different RadTreeView controls or nodes on same RadTreeView. In such cases we suggest avoiding the usage of "Client-side drag & drop" approach. When using the "Client-side drag & drop" the client state hidden field is getting enormously increased and might cause unexpected behavior.

In case of using server-side node drag and drop functionality might avoid such problems. Please review the following RadTreeView demo and specifically the method RadTreeView1_HandleDrop and disable the Client-side drag & drop.

Regards,
Boyan Dimitrov
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.
0
Abbas
Top achievements
Rank 1
answered on 15 Nov 2013, 08:41 AM
Hallo Dimitrov,
Many thanks your reply.

Well, actually I am using the same mechanism in the drag and drop functionality like the one you sent to me (RadTreeView1_HandleDrop).
But we still have a problem with dragging and dropping huge amount of nodes.

I have two questions please:
1- What is the maximum number of nodes that the treeview can display ?
2- Can you please send me a prepared example to avoid (Maximum request length exceed) when I drag and drop huge amount of nodes between two treeviews?

Thanks and have a nice day

Regards,
A.Abbas


0
Boyan Dimitrov
Telerik team
answered on 20 Nov 2013, 08:06 AM
Hello Abbas,

I would like to clarify that the size of the ViewState or the ClientState fields might cause throwing the  Maximum request length exception when the page post-backs. Considering the fact that both fields store the information about all controls on the page so we can not limit a specific number of nodes that could be displayed or moved on the page.  A real scenario could contain a lots of controls on the page so all those controls increase the size of ViewState filed so in this context a RadTreeView control with a fewer number of nodes could overflow the request length when page post-backs.


Regards,
Boyan Dimitrov
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
TreeView
Asked by
Abbas
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Abbas
Top achievements
Rank 1
Share this question
or