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

[Solved] Disalbe drag drop from Mastertable

1 Answer 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 24 Apr 2009, 04:28 AM
Hi Everybody,

I am using the Hierarchical grid and i have a mastertable and a detail table,
I have allowed the drag drop functionality in grid, it is working for both mastertable as well as detailtable.
i want to stop dra drop from Master table view but alow drag drop row from detailtable .

Can anybody help me to achieve this?

Thanks,
Hrushikesh

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Apr 2009, 07:18 AM
Hello Hrushikesh,

You can try out the following code to disable darg and drop of rows on the MasterTableView:
aspx:
 <ClientSettings  AllowRowsDragDrop="true" > 
     <ClientEvents OnRowDragStarted="RowDragStarted" /> 
      <Selecting AllowRowSelect="True"  />                
 </ClientSettings> 

js:
function RowDragStarted(sender, eventArgs) 
 {     
    if(eventArgs.get_tableView().get_name() == "Master"
     {     
       eventArgs.set_cancel(true); 
     } 
 } 

Thanks
Princy.
Tags
Grid
Asked by
Hrushikesh Mokashi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or