Drag and drop thousands of nodes between two radtreeviews

4 posts, 0 answers
  1. Abbas
    Abbas avatar
    3 posts
    Member since:
    Oct 2013

    Posted 30 Oct 2013 Link to this post

    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 

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 04 Nov 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Abbas
    Abbas avatar
    3 posts
    Member since:
    Oct 2013

    Posted 15 Nov 2013 Link to this post

    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


  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 20 Nov 2013 Link to this post

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