Hi,
I need to trap Enter Key in UniDBGrid for Refreshing Calculate Field
when user press enter in cell editor, cursor will focus to the next column and calculate field value will be changed (refresh)
i use
TForm........UniDBGrid.OnKeyDown
if Key = VK_RETURN then <-- it doesn't work, cannot trap enter key
RefreshDataset;
Thank you
Environment
Delphi XE7
UniGui 0.99.80.1214
Can you try this approach?
1. function edit:
function edit(editor, context, eOpts)
{
/*function _post () {
ajaxRequest(editor.grid, '_post', []);
}
setTimeout(_post, 200);*/
return ajaxRequest(editor.grid, '_post', [], false).responseText == "true";
}
2. AjaxEvent:
procedure TMainForm.GridLinesAjaxEvent(Sender: TComponent; EventName: string;
Params: TUniStrings);
begin
if EventName = '_post' then
begin
if (GridLines.DataSource.DataSet.State in [dsInsert, d