Dataview.define("drag",false) doesn't work

Hello, I have used the syntax:
which is working, but code:
do nothing.

Is the syntax correct ? Could be mistake somewhere else? Usage is simple on button click.
Thank You

Unfortunately the drag mode cannot be disabled dynamically.
Once it was enabled, it xcannot be disabled.
PLeas,e try to use the onBeforeDrag event to block the dragging in your dataview:

Thank You for your answer, we already did this workaround and it works as we need.