Grid numeric keyboard only


How can I put the keyboard for all the Android and iOS apps when I'm in edit mode of any cell grid?


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.


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);
  if ACol = 1 then
    (CellEditor as TTMSFMXEdit).KeyboardType := TVirtualKeyboardType.NumberPad
    (CellEditor as TTMSFMXEdit).KeyboardType := TVirtualKeyboardType.Default;

procedure TForm1.TMSFMXGrid1GetCellEditorType(Sender: TObject; ACol,
  ARow: Integer; var CellEditorType: TTMSFMXGridEditorType);
  if ACol = 1 then
    CellEditorType := etNumericEdit;

Pieter Scheldeman2015-05-27 09:13:05


Thanks for the info

That did the trick, It works now.