enableDragAndDrop is not a function

Hello,

I try to disable the drag-and-drop in the grid. Ideally I would like the user to not be able even to select data. But for sure I want the user to not be able to drag-and-drop data from the grid.

I tried to set:
self.grid.enableDragAndDrop(false);
in the onLoadGrid() but I get a nice error:
TypeError: self.grid.enableDragAndDrop is not a function.

I also tried with the block selection:
self.grid.enableBlockSelection(false);
and I get the same error.

As far as I can see the version of the library is 3.6.0-29.

Is this API available in this version? Am I doing something wrong? Is there any other way to achieve what I want?

Thanks a lot in advance.

I tried to set:
self.grid.enableDragAndDrop(false);
in the onLoadGrid() but I get a nice error:
TypeError: self.grid.enableDragAndDrop is not a function.

The error means that the extension for the drag’n’drop feature is not included on page. It means that you cannot drag your rows in your grid.

The similar situation is with the block selection.

I mean, you are trying to disable the features which are disabled by default, and even cannot be enabled without the corresponded extension files.

Hi sematik,

Thank you for your answer. I finally managed to disable the selection for the whole web content in the css (outside the part which uses the library).

You may block the selection of the grid using the:
grid.attachEvent(“onBeforeSelect”, function(new_row,old_row,new_col_index){
return false
});