BeginEdit not Opening Keyboard on Tablet UWP

Hi, 

I am using BeginEdit to start editing a particular cell immediately after viewing the grid. 
The thing is that when the cell is accessed via the BeginEdit the cell is focused but the keyboard is not showing on the tablet.

Can you please guide me on what I am doing wrong?

Thanks

4 Replies

SS Sivaraman Sivagurunathan Syncfusion Team February 6, 2018 01:36 PM UTC

Hi Wayne, 
 
Thanks for using Syncfusion support. 
 
We have checked your query and try to reproduce the reported  “Keyboard does not in the view while using BeginEdit” issue. But we are unable to reproduce the issue from our side. We have prepared the sample for your reference, you can download the same from the below link. In case, if the issue still persists at your side, please revert us with a modified sample to reproduce the issue with proper replication procedure that would be more helpful for us to proceed further.   
 
 
Regards, 
Sivaraman  



WC Wayne Caruana February 6, 2018 02:14 PM UTC

Same Problem with your solution... I think it might be an issue from the device :(


WC Wayne Caruana replied to Wayne Caruana February 6, 2018 02:23 PM UTC

Same Problem with your solution... I think it might be an issue from the device :(

I'm not sure if it's a device problem I tried it on 2 different Windows 10 tablets and both with the same issue. 


SS Sivaraman Sivagurunathan Syncfusion Team February 8, 2018 03:48 AM UTC

Hi Wayne, 
 
We are sorry for the inconvenience caused. 
 
We have checked your query, if you are call BeginEdit() method in GridLoeded event, the keyboard will not show because layout process has done at the same time. So we need to Unfocus the GridCell and again call the focus for that GridCell to showing the Keyboard. We have prepared the sample based on your requirement and you can download the same from the  below link. 
 
 
 
private async void DataGrid_GridLoaded(object sender, GridLoadedEventArgs e) 
{ 
    var rowItem = dataGrid.GetRowGenerator().Items.FirstOrDefault(x => x.RowIndex == 2); 
    dataGrid.BeginEdit(2, 2); 
    await Task.Delay(500); 
    List<DataColumnBase> visibleColumns = rowItem.GetType().GetProperty("VisibleColumns").GetValue(rowItem) as List<DataColumnBase>; 
    (((visibleColumns[2] as IElement).Element as GridCell).Content as SfEntry).Unfocus(); 
    await Task.Delay(500); 
    (((visibleColumns[2] as IElement).Element as GridCell).Content as SfEntry).Focus(); 
} 
 
 
Regards, 
Sivaraman 


Loader.
Up arrow icon