Kanban disable all activity

Hi,
I am using Reactjs

I want to disable all action in view mode. 
I tried allowDragAndDrop but this will prevent only drag and drop.

I want to prevent edit dialog.
mu existing code
<KanbanComponent
          id={'kanban_' + this.props.id}
          ref={(kanban) => { this.kanbanObj = kanban }}
          keyField='Status'
          dataSource={this.props.data.length > 0 ? this.props.data : []}
          cardSettings={{ contentField: 'Summary', headerField: 'Id' }}
          toolbar={this.toolbarOptions}
          editSettings={this.editSettings}
          actionBegin={this.onActionBegin.bind(this)}
          allowDragAndDrop={this.props.componentType !== 'viewReport'}
        >
          <ColumnsDirective>
            <ColumnDirective headerText='To Do' keyField='ToDo' />
            <ColumnDirective headerText='In Progress' keyField='InProgress' />
            <ColumnDirective headerText='Testing' keyField='Testing' />
            <ColumnDirective headerText='Done' keyField='Done' />
          </ColumnsDirective>
        </KanbanComponent> 

1 Reply 1 reply marked as answer

HB Hareesh Balasubramanian Syncfusion Team October 14, 2020 09:22 AM UTC

Hi Arul, 

Greetings from Syncfusion Support..! 

We have prepared a sample for your query “I want to prevent edit dialog” using dialogOpen event of the Kanban component and it can be viewed from the following link. 


  dialogOpen(args) { 
    args.cancel = true; 
  } 

Also kindly refer to the below API link, 

Kindly try the above solution and get back to us if you need any further assistance. 

Regards, 
Hareesh 


Marked as answer
Loader.
Up arrow icon