Using Next button on keyboard to go the next cell

Hi,

I'm using the SFDatagrid to edit some data. On UWP the Tab key works perfect, moving to the next cell to enter. 
On Android / iOS there is no next key on the soft keyboard. How could I make this key available and make it go the next textbox so the user can quickly enter data without tapping in each & every field manually.


1 Reply

AN Ashok N Syncfusion Team November 20, 2017 11:18 AM UTC

Hi Chris, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query and currently we don’t have support for customize the Key board in Xamarin.Forms.Android and Xamarin.Forms.iOS. Already we have attached this as in our new feature list and it will be available any of our upcoming release. 
 
We can able to commit the edited cell values and perform the current cell end edit by click Enter key by handling CurrentCellBeginEdit event. Please refer the below code example: 
 
dataGrid.CurrentCellBeginEdit += DataGrid_CurrentCellBeginEdit; 
 
private async void DataGrid_CurrentCellBeginEdit(object sender, GridCurrentCellBeginEditEventArgs e) 
{ 
    await Task.Delay(100); 
 
    var row = dataGrid.GetRowGenerator().Items.FirstOrDefault(x => x.RowIndex == e.RowColumnIndex.RowIndex); 
    var column = (row.GetType().GetRuntimeProperties().FirstOrDefault(x => x.Name == "VisibleColumns").GetValue(row) as List<DataColumnBase>).FirstOrDefault(x => x.ColumnIndex == e.RowColumnIndex.ColumnIndex); 
 
    if (((column as IElement).Element as ContentView).Content is Entry) 
    { 
        (((column as IElement).Element as ContentView).Content as Entry).Completed += Entry_Completed; 
    } 
} 
private async void Entry_Completed(object sender, EventArgs e) 
{ 
    dataGrid.EndEdit(); 
    await Task.Delay(500); 
} 
 
 
Regards, 
Ashok 


Loader.
Up arrow icon