tags:

views:

52

answers:

1

I had a working grid-to-grid drag and drop configuration, but once I changed one of the grids to an EditorGridPanel, I could no longer drag from it - only to it. Once I click on the row I want to drag I get the following error:

sm.isSelected is not a function
if(!sm.isSelected(rowIndex) || e.hasModifier()){

ext-all-debug.js (line 45439)

Is there any way to set it up so I can drag rows from an EditorGridPanel?

A: 

Found the answer to this inadvertently while looking at another example.

When creating a EditorGridPanel, be sure to include:

selModel:new Ext.grid.RowSelectionModel({singleSelect:true}),

to get the drag and drop functionality to work.

Scotty