Hi,
I have tried adding [allowRowDragAndDrop]='true' to my Gantt component but still, I m not able to drag and drop between rows in angular am I missing something PFB, my sample snippet.
component.html
component.ts
I cannot find any drag and drop control only the parent task is getting collapsed
|
import { GanttModule } from "@syncfusion/ej2-angular-gantt";
import { RowDDService } from "@syncfusion/ej2-angular-gantt";
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
GanttModule,
DropDownListAllModule,
CheckBoxAllModule,
TextBoxAllModule,
NumericTextBoxAllModule,
MultiSelectAllModule,
DropDownListModule
],
providers: [RowDDService],
bootstrap: [AppComponent]
})
|
thanks, Monisha for your support it works but just to confirm is there any callback or on change event so that I can update the task to my API?
|
<ejs-gantt
id="DragAndDrop"
height="430px"
[dataSource]="data"
[taskFields]="taskSettings"
[allowRowDragAndDrop]="true"
[columns]="columns"
[labelSettings]="labelSettings"
[treeColumnIndex]="1"
[splitterSettings]="splitterSettings"
[selectionSettings]="selectionSettings"
[highlightWeekends]="true"
[projectStartDate]="projectStartDate"
[projectEndDate]="projectEndDate"
(rowDrop)="rowDrop($event)"
>
</ejs-gantt>
|
|
public rowDrop(args: any) {
console.log(args);
}
|
Thanks, Monisha, it works you can close this issue will get back if I need anything more.
I really appreciate your support
Thanks,
Sanu Khan