Hi,
Is there any way to catch onKeypress from cell editor. I want to end the datagrid by pressing enter, and may be another function like tab for switching to the next editor.
<GridColumn key='inikey3' title="DESCRIPTION" field="description" rowspan="2" width="300px"
editable
editor={({ row }) => (
<TextBox
ref={this.textInput}
value={row.description}
onKeyPress={this.handleKeyHere.bind(this)}
></TextBox>
)}
></GridColumn>
//we want to to like this
handleKeyHere(event) {
if(event.keyCode === 13) {
this.datagrid.endEdit();
}
}
Thanks.