EasyUI Forum
April 28, 2024, 11:15:24 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: DataGrid: Multiple select only with CTRL  (Read 52528 times)
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #15 on: April 15, 2014, 06:51:33 PM »

Please refer to this simple example http://jsfiddle.net/HSE2j/ that allows dragging multiple rows to another datagrid.
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #16 on: April 19, 2014, 11:35:23 PM »

Thank you man!
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #17 on: April 22, 2014, 03:10:32 AM »

Hello
is it possible to combine 'enableDnd' with this example?
It works only for the first time (please see attached example).
With other words, when I use drag from left grid and drop to right grid - it works for first time.
What I need is to drag from left and drop to right grid and additional use right grid to move items up or down (using 'enableDnd')
Thanks.

P.S. here is your original example:
http://jsfiddle.net/HSE2j/
« Last Edit: April 22, 2014, 03:58:14 AM by Pierre » Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #18 on: April 22, 2014, 11:54:07 PM »

stworthy, please?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #19 on: April 23, 2014, 12:07:29 AM »

This feature request has been sent to our developer team. The 'datagrid-dnd.js' file will be enhanced to support dragging multiple rows.
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #20 on: April 23, 2014, 12:30:43 AM »

Thank you so much!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #21 on: April 28, 2014, 08:32:36 PM »

The dragging and dropping multiple rows is available now, please download from http://www.jeasyui.com/extension/datagrid_dnd.php. To let the user drag the selected rows, please set 'dragSelection' property to true.

Code:
	$('#dg').datagrid({
singleSelect: false,
dragSelection: true,
onLoadSuccess: function(){
$(this).datagrid('enableEnd');
}
});
« Last Edit: April 28, 2014, 08:50:39 PM by stworthy » Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #22 on: April 30, 2014, 06:05:15 AM »

Thank you so much. Will try it now!
Logged
Pages: 1 [2]
  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!