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

Drag and drop rows with hierarchial structure

0 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jasenko
Top achievements
Rank 1
jasenko asked on 12 Sep 2010, 06:38 PM
I have a 3-level hierarchical structure in the radgrid.  All the data is being pulled programmatically.

Is there any way to only allow level-2 rows to be drag-and-dropped? 
Example, if the grid looks like this:
            
Week #
  1
        Section
            A
                     Names
                      Sarah
            B
                     Names
                      Jim
                      John
            C
                     Names
                      Bob
                      Karl
                      Jane
  2
        Section
            D
                     Names
                      Karla
                      Jack
           
etc.

I want to be able to only drag sections between various week numbers.  If I drag Section "D" from Week 2 into Week 1, I want it to take all the names in D with it.

Currently, if I allowdragdrop, every row is movable.
Any help would be appreciated.

EDIT:
Well, scratch that, I figured it out.  Sorry, I guess I just  overlooked the fact that I could distinguish between levels of the hierarchy when I did all the reordering in the  RowDrop event.

Remove this thread, if you'd like. 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
jasenko
Top achievements
Rank 1
Share this question
or