EasyUI Forum
April 29, 2024, 03:11:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: disable dragdrop event on specific column of treegrid or data grid dragdrop  (Read 8761 times)
yogesh
Newbie
*
Posts: 47


View Profile Email
« on: September 24, 2013, 05:44:18 AM »

as we discussed in thread it is possible to drag drop on datagrid and treegrid

http://www.jeasyui.com/forum/index.php?topic=575.0

but if i want to allow user drag drop using only one column in datagrid and treegrid then how to achive this in this framework?

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 25, 2013, 06:45:32 AM »

Please use the datagrid-dnd extension that can be downloaded from http://www.jeasyui.com/extension/datagrid_dnd.php. Some events such as 'onBeforeDrag' can be used to determine if the drag drop action is allowed.
Logged
yogesh
Newbie
*
Posts: 47


View Profile Email
« Reply #2 on: September 26, 2013, 01:21:27 AM »

Hi,

i checked that document

current option is to play with rows not with column

$('#dg').datagrid('enableDnd', 1);   // enable dragging on second row
$('#dg').datagrid('enableDnd');

how to disable column for drag drop event.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!