Hello
How can I put the keyboard for all the Android and iOS apps when I'm in edit mode of any cell grid?
Thanks
I'm not sure I understand your question. What specific kind of grid inplace editor type do you use? For regular cell inplace editors, when the inplace editor becomes active & gets focus, the keyboard should automatically appear.
Hello Bruno
In fact the keyboard automatically appears, but always in alpha mode.
The editor in my columns of the TFMXGrid are in etNumericEdit mode. But I'm expect the user to see the numeric pad only, and not the alpha. The grid purpose is for enter numeric values only.
It's frustrating to the user fill a grid of 20x20 and switch to numeric keyboard editing each cell.
Hi,
We will investigate the alpha issue here, but please note that the edit for Windows doesnt have the alpha transparency issue, for Android, we might need to hide the cell when the editor is active. Now the editor is placed on top.
You can additionally set the keyboard type in the OnGetCellEditorProperties
procedure TForm1.TMSFMXGrid1GetCellEditorProperties(Sender: TObject; ACol,
ARow: Integer; CellEditor: TFmxObject);
begin
if ACol = 1 then
(CellEditor as TTMSFMXEdit).KeyboardType := TVirtualKeyboardType.NumberPad
else
(CellEditor as TTMSFMXEdit).KeyboardType := TVirtualKeyboardType.Default;
end;
procedure TForm1.TMSFMXGrid1GetCellEditorType(Sender: TObject; ACol,
ARow: Integer; var CellEditorType: TTMSFMXGridEditorType);
begin
if ACol = 1 then
CellEditorType := etNumericEdit;
end;
Pieter Scheldeman2015-05-27 09:13:05
Pieter
Thanks for the info
That did the trick, It works now.
Regards