EasyUI Forum

General Category => General Discussion => Topic started by: ahybits on February 29, 2016, 10:02:47 AM



Title: Drag-and-Drop to Datagrid getRows
Post by: ahybits 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?


Title: Re: Drag-and-Drop to Datagrid getRows
Post by: ahybits 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


Title: Re: Drag-and-Drop to Datagrid getRows
Post by: jarry 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.