Page 1 of 1

cell selection

Posted: Wed Mar 29, 2023 6:29 pm
by jhughesoneplan

I am using the new cell selection mode. I am trying to prevent a row from being editing. By using the beforeCellEditStart I am able to prevent clicking in to edit the cell. However when the cell is selected, you can still press delete on the keyboard and it removes the value. How do you prevent this?


Re: cell selection

Posted: Thu Mar 30, 2023 3:24 am
by marcio

Re: cell selection

Posted: Fri Mar 31, 2023 6:15 pm
by jhughesoneplan

That doesn't work. It is not in edit mode. The cell in question is read only.


Re: cell selection

Posted: Mon Apr 03, 2023 12:27 pm
by tasnim

Hi,

Try setting the TaskModel to readOnly https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel#field-readOnly
This should be working for you.


Re: cell selection

Posted: Tue Apr 04, 2023 7:11 pm
by jhughesoneplan

That doesn't seem to work either. Additionally columns like WBS can be dragged over. Also if the entire gantt is readOnly it allows you to drag as well.


Re: cell selection

Posted: Wed Apr 05, 2023 7:41 am
by tasnim

Hi,

It seems to be working fine with the latest version 5.3.2 here https://bryntum.com/products/gantt/examples/advanced/
I tried setting the Gantt to readOnly, and it works fine. I'm not able to reorder a task

What version are you using?


Re: cell selection

Posted: Wed Apr 05, 2023 5:50 pm
by jhughesoneplan

Go here: https://bryntum.com/products/gantt/examples/cellselection/ Add the wbs column

{type:'wbs'}

and try to drag down. This is one example where the drag should not be working. We have many locations where drag is happening and shouldn't be. By drag I am talking about the cell editing fillable, not dragging whole lines. FillHandle feature


Re: cell selection

Posted: Thu Apr 06, 2023 8:39 am
by tasnim

Hi,

Thanks for the report. Opened a ticket to investigate it. Here it is https://github.com/bryntum/support/issues/6546