EasyUI Forum
April 29, 2024, 09:16:22 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: Drag-and-Drop to Datagrid getRows  (Read 8200 times)
ahybits
Newbie
*
Posts: 26


View Profile
« on: February 29, 2016, 10:02:47 AM »

Hi,

I tweaked the "Creating a School Timeline" tutorial to http://jsfiddle.net/w2cat25h/2

The issue I am having is once you drag something and do getRows, only the "raw" dataset is shown, not any of the values dropped in )check out the console.log to see output result)

How can I accomplish in getting the data dropped into each cell?
Logged
ahybits
Newbie
*
Posts: 26


View Profile
« Reply #1 on: March 01, 2016, 02:50:28 PM »

I could not figure it out any easy way; ended up using the styler to add multiple classes to each drop and use that data for dumping it into an object array to be processed once eveythting was done
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #2 on: March 01, 2016, 03:24:08 PM »

When dropped, you need to get the row index and the field name of the cell and then call updateRow method to update the datagrid data.
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!