public actionComplete(args) {
const type = args.requestType;
switch (type) {
case "delete":
if (confirm("Delete?") == true) {
let id = args.data.taskId;
this.taskService.delete(id);
} else {
args.cancel = true;
args.preventDefault();
args.stopImmediatePropagation();
args.isDefaultPrevented();
}
break;
So is there any quick solution?
I will be grateful for any help you can provide.
Marko
Hi,
thank you for your answer. So if there is no such option yet, is it posible to disable only keyboard delete button, so that when someone press delete on keyboard nothing would happened, but all other keyboard buttons would still work the same?
I hope what I have requested is possible.
Marko
[HTML]
<ej-gantt id="GanttControl" (create) = "ganttCreate($event)"
>
[TS]
ganttCreate(args) {
//TreeGrid Obj
var treeObj = $("#ejTreeGridGanttControl").ejTreeGrid("instance"),
// GanttChart Object
ganttchartObj = $("#ejGanttChartGanttControl").ejGanttChart("instance");
delete treeObj.model.keyConfigs.deleteRecord;
delete ganttchartObj.model.keyConfigs.deleteRecord;
} |
create() {
let proxy = $('#GanttControl').ejGantt('instance');
$("#ejTreeGridGanttControl_ConfirmDialog").find("div")[0].innerHTML = "هل تريد بالتأكيد حذف هذا العمود؟";
};
|
[package.json]
//…
"syncfusion-ej-global": "^15.3.26",
|
[HTML]
<ej-gantt id="GanttControl" [dataSource]="ganttData" locale= "fr-FR"
sizeSettings.height="350px" sizeSettings.width="70%" (create)="create()">
</ej-gantt>
[TS]
import 'syncfusion-ej-global/i18n/ej.culture.fr-FR.min.js';
import 'syncfusion-ej-global/l10n/ej.localetexts.fr-FR.min.js';
//…
|
[TS]
export class AppComponent {
//…
constructor() {
ej.TreeGrid.Locale['fr-FR'].deleteRecordText = 'Your Customized Text';
//…
|