Hi Shreekumar,
Thanks for contacting Syncfusion Support.
Query: How to disable Keyboard events for TreeGrid?
We have analysed your query at our end and we suggest you to give allowKeyboard:false in the load event to disable the keyboard events for TreeGrid.
Please refer to the below code snippet:-
……………
@Component({
selector: 'app-container',
template: `<ejs-treegrid [dataSource]='data' (load)='load($event)' [treeColumnIndex]='1' childMapping='subtasks'>
<e-columns>
<e-column field='taskID' headerText='Task ID' textAlign='Right' width=70></e-column>
<e-column field='taskName' headerText='Task Name' textAlign='Left' width=200></e-column>
<e-column field='startDate' headerText='Start Date' textAlign='Right' format='yMd' width=90></e-column>
<e-column field='duration' headerText='Duration' textAlign='Right' width=80></e-column>
</e-columns>
</ejs-treegrid>`
})
.. . . . . .. . . . . . .
//Define load event//
load(args:Object){
var treegrid=document.getElementsByClassName("e-treegrid")[0].ej2_instances[0];
treegrid.allowKeyboard=false;
}
}
|
Kindly refer the below sample link and API link:
Please get back to us ,if you need any further assistance on this.
Regards,
Gowri V L.