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

Implemetation drag drop functionality only for details table in hierarchical grid

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chinna
Top achievements
Rank 1
chinna asked on 15 Dec 2008, 05:53 PM
I am looking  some example code to provide the drag drop functionality only for details table in hierarchical grid hierarchical grid.  

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Dec 2008, 11:30 AM
Hi Chinna,

I think you are trying to prevent the Row Drag and Drop functionality for the Master table. If so you can achieve the desired scenario on the client side by setting the Name property for the Master and Detail table. On OnRowDragStarted client event check for the Name property and cancel accordingly.

ASPX:
 <ClientSettings AllowRowsDragDrop="true" > 
              <Selecting EnableDragToSelectRows="true" AllowRowSelect="true"  /> 
              <ClientEvents  OnRowDragStarted="OnRowDragStarted" /> 
             </ClientSettings> 

JS:
<script type="text/javascript"
 
 function OnRowDragStarted(sender,args) 
 {         
     if(args.get_tableView().get_name()=="Master"
        { 
                 args.set_cancel(true); 
        } 
 } 
</script> 


Hope this helps..
Shinu
Tags
Grid
Asked by
chinna
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or