SfDataGrid auto scroll to top upon keyboard open in mobile

I'm having problem with SfDataGrid that whenever the keyboard is open the grid auto scroll to top.
I have attached my code


Attachment: company_discount_screen_332dee41.rar

3 Replies

AP Abinesh Palanisamy Syncfusion Team August 19, 2024 09:58 AM UTC

Hi Hashir,

Based on the information provided, we were unable to run the attached sample on our end. Therefore, we conducted tests using a simple editing sample to replicate the reported issues. However, we were unable to reproduce the issues as described. Additionally, we adjusted the layout of the sample to match the provided example, but still could not reproduce the issues.


If you are still encountering the same problem, we kindly request that you modify the attached sample to reproduce the issue and provide additional details about the use case and device specifications on your end. This will greatly assist us in investigating the issue further and providing an appropriate solution as quickly as possible.


Regards,

Abinesh P


Attachment: SfDataGrid_f87c8520.zip


MH Muhammad Hashir August 19, 2024 11:13 AM UTC

Thanks for looking for the issue. I somehow managed to solve the problem using this method

@override
bool onCellBeginEdit(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column) {
controller.scrollToCell(rowColumnIndex.rowIndex.toDouble(), rowColumnIndex.columnIndex.toDouble(),
columnPosition: DataGridScrollPosition.center,
rowPosition: DataGridScrollPosition.center,
canAnimate: true);
return super.onCellBeginEdit(dataGridRow, rowColumnIndex, column);
}


AP Abinesh Palanisamy Syncfusion Team August 20, 2024 05:53 AM UTC

Hi Hashir,


We are glad to hear that the reported issue has been resolved on your end. Please let us know if you have any further queries. We are happy to help.


Regards,

Abinesh P


Loader.
Up arrow icon