Paging not possible after selecting Row manuelly

Hi,

I have a little problem with the SfGrid:

My component has a UUID parameter to identify and then selecting this item in the grid.
This code is selecting the correct row in the grid!

public static async Task SelectRowByHiCoId<HICO, LOCO>(this SfGrid<HICO> grid, IHiCo<LOCO> hico) 
      {                   
            var searchIndexOfDataSource = grid.DataSource.IndexOf((HICO)hico);
            int page = searchIndexOfDataSource / grid.PageSettings.PageSize;
            await grid.GoToPage(page + 1);
            var searchIndex = await grid.GetRowIndexByPrimaryKey(hico.ID);
            await grid.SelectRow(searchIndex);
}

But the problem is: After the correct row is selected, it's impossible to go to another page (in my example I have at least 8 pages with 20 pageitems)! For a few seconds I can see the loading bar, but the same page is still visible.

Do you have some hints how to fix that?

Best regards,
Bernd


2 Replies

VN Vignesh Natarajan Syncfusion Team May 11, 2021 05:51 AM UTC

Hi Bernd,  
 
Thanks for contacting Syncfusion support.  
 
Query: “After the correct row is selected, it's impossible to go to another page (in my example I have at least 8 pages with 20 pageitems)! For a few seconds I can see the loading bar, but the same page is still visible. 
 
We have analyzed your query and we suspect that you are not able navigate to other page using pager component after selecting a records manually. We have ensured the reported issue by preparing a sample using your code example and we are not able to reproduce the reported issue at our end. Kindly refer the below sample for your reference 
 
 
After referring the sample, if you are still facing the issue. Kindly get back to us with following details.  
 
  1. Share the video demonstration of the issue along with replication procedure.   
  2. Share your Grid code example.
  3. Are you using same method for Multiple Grids?.
  4. Are you facing any script error / exception in browser console. If yes, share the details about the error.
  5. If possible share the simple issue reproducible sample.
  6. Or try to reproduce the reported issue in provided sample.
 
Above requested details will be very helpful for us to validate the reported query at our end and provide solution as early as possible.  
 
Regards, 
Vignesh Natarajan 



VN Vignesh Natarajan Syncfusion Team May 11, 2021 05:54 AM UTC

Hi Benrd, 

Sorry for the inconvenience.  

Previously uploaded sample is not working properly. Please find the sample from below  


After referring the sample if you are still facing the issue. Kindly get back to us with the requested details to validate the reported issue at our end.  

Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon