Hi kalum,
Greetings from Syncfusion support
After reviewing your query, we found that you are invoke the
focus() in the keypress before the record is added to the Grid. It was the
cause of the problem. We need to invoke the focus() after the record is added
to the Grid, then only the focus is maintained in the Textbox. Please refer the
below code example and sample for more information.
|
Index.cshtml
function setFocus(fromObj, toObj) {
document.getElementById(fromObj).addEventListener('keypress', async
(args) => {
if
(args.key == 'Enter') {
setTimeout((e) => {
document.getElementById(toObj).focus();
}, 300)
}
})
}
|
Sample:
Regards,
Rajapandi R
Attachment:
184159_da65e00f.zip