Hi Michal,
Thanks for contacting Syncfusion Support.
Query#:-After clicking "insert child" button, to have a focus inside a cell of the newly created row (string cell).
We have checked your query and we have achieved your requirement by using addRecord method with empty parameters with certain time interval. Refer to the code below:-
App.Component.ts
insert(data: any) {
var childRow = {
name: 'new Row',
};
var treegrid = this.treegrid;
setTimeout(function () {
treegrid.addRecord(); // call addRecord method with data and index of parent record as parameters
}, 50);
} |
Please get back to us if you need any further assistance.
Regards,
Farveen sulthana T