Setting 'allowDragging' to 'None' does not prevent column dragging in FlexSheet

Posted by: guy.g on 6 September 2018, 9:36 am EST

  • Posted 6 September 2018, 9:36 am EST

    Hi,

    In wijmo FlexSheet, If I do

    flexSheet.allowDragging = wijmo.grid.AllowDragging.None
    

    I can still click on a column header to mark the column cells and then, when the cursor is on the cells border and has a 4 arrows pointing outwards shape, I can drag the entire column and replace its position, moving all its cells.

    I need an option that goes along with isReadOnly to allow the users to see the entire sheet without beeing able to modify or edit the data.

    I tried isDisabled. but that disables the scroll as well.

    Is there a way I can achieve this kind of behavior?

  • Posted 7 September 2018, 4:40 am EST

    Hi,

    We were able to replicate the issue at our end and hence it has been forwarded to the concerned team for further investigation with internal tracking id 342188.

    Till then you may handle mousemove event and disable dragging ranges as a workaround.

    Please refer to the following sample:- https://stackblitz.com/edit/js-w5wzfe?file=index.js

    Regarding setting allowDragging property, allowDragging property is supposed to only disable dragging row/column by its header which seems to be working fine.

    The confusing might be due to the dragging of cell ranges(dragged only from the edge when move cursor appears, it modifies cell content) which is different from dragging column/row(moved by dragging row/column, only changes row/column position and does not modify cell content).

    ~Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels