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

Scroll while dragging

3 Answers 83 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jero
Top achievements
Rank 1
Jero asked on 15 May 2012, 10:03 AM
Is it possible to scroll automatically while dragging?
I have a tree view with lot of items inside a div with scrollbar

.HtmlAttributes(new { style = "height: 700px; overflow: scroll; position: relative;" })

the nodes must be reordered through drag and drop, but I can't do in a row when the new position is beyond the current limit of the scollbar, any idea?

3 Answers, 1 is accepted

Sort by
0
Marcel
Top achievements
Rank 1
answered on 15 Oct 2012, 09:47 AM
Same problem here. Did you manage to fix it? Or is there a solution to this that I missed?
0
Jero
Top achievements
Rank 1
answered on 16 Oct 2012, 08:56 AM
No solution founded yet and no response from the Telerik support.
You better don't use the Telerik TreeView if using a div with scrollbar is a mandatory requirement for you.
.
0
Marcel
Top achievements
Rank 1
answered on 16 Oct 2012, 09:57 AM
Unfortunately, using the treeview and having the possibility to drag and drop within a scrollable treeview are mandatory.
I tried using the following, but alas.
function onTreeDataBound(e) {
    $('.t-treeview span.t-in').draggable({
        scroll: true
    });
}

The RAD controls seem to have the same issue, but I rather would not use that solution:
http://www.telerik.com/community/forums/aspnet-ajax/treeview/radtreeview-drag-and-drop-scrolling.aspx

Any suggestions? Telerik support?
Tags
TreeView
Asked by
Jero
Top achievements
Rank 1
Answers by
Marcel
Top achievements
Rank 1
Jero
Top achievements
Rank 1
Share this question
or