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

[Solved] Disable drag and drop in detailtable

2 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mk
Top achievements
Rank 1
mk asked on 02 Oct 2009, 12:34 AM
I have enabled drag and drop in the mastertable and do not want to allow it in the detailtable.
How do I disable it?

2 Answers, 1 is accepted

Sort by
0
Accepted
Schlurk
Top achievements
Rank 2
answered on 02 Oct 2009, 02:48 PM
You can  try the following:
 
<ClientSettings  AllowRowsDragDrop="true" >  
     <ClientEvents OnRowDragStarted="DragStarted"
     </ClientEvents>  
     <Selecting AllowRowSelect="True"
     </Selecting> 
</ClientSettings>  

And then this javascript:
 
function DragStarted(sender, eventArgs)  
{      
   if(eventArgs.get_tableView().get_name() == "Detail")  
   {      
      eventArgs.set_cancel(true);  
   }  
}  
0
mk
Top achievements
Rank 1
answered on 02 Oct 2009, 04:06 PM
thanks, as soon as I named the mastertable and the detailtable it worked.
Tags
Grid
Asked by
mk
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
mk
Top achievements
Rank 1
Share this question
or