Hello,
I want to scroll the virtual grid to a specific row index.
The amount of row is know to the virtual grid by assigning it to this.radVirtualGrid1.RowCount.
So I thought it must be easy to scroll the grid to a specific row index programmatically.
But the usage of
this.radVirtualGrid1.TableElement.RowScroller.ScrollToItem(rowIndex);
this.radVirtualGrid1.TableElement.ScrollTo(rowIndex);
did not work as expected.
What is the easies way to scroll the virtual grid to the desired row index?
Thank You!
Regardss
Ingo
8 Answers, 1 is accepted
Thank you for writing.
Currently, RadVirtualGrid doesn't provide API for scrolling to a certain row. However, it seems to be a reasonable request. I have logged it in our feedback portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item.
I have also updated your Telerik points.
Currently, the possible solution that I can suggest is to select a cell from the desired row:
int
rowIndex = 20;
int
colIndex = 0;
this
.radVirtualGrid1.SelectCell(rowIndex, colIndex);
I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Telerik
Hello Dess,
thank You for Your answer and the points.
But the SelectCell statement seams not to work in my case. The application freezes when it is called.
I am currently using the Version 2016.1.216.20 of the Winforms UI. Could this be a problem of this version?
Thank You!
Regards,
Ingo
Thank you for writing back.
Indeed, there was a problem in the specified version 2016.1.216. However, in the official version of RadVirtualGrid (R2 2016 version the problem is not reproducible. Feel free to upgrade in order to benefit from the fix.
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Telerik
Hello Dess,
After the update the proposed solution works as required.
Thank You again!
Regards,
Ingo
Thank you for writing.
We had a known issue when pressing the PageDown key. However, it has already been addressed and it is not reproducible in the latest version. Here is the feedback item for your reference: https://feedback.telerik.com/Project/154/Feedback/Details/190542-fix-radvirtualgrid-nullreferenceexception-when-pressing-pagedown-pageup-keys-a
However, if you are still experiencing any undesired behavior with the latest version, it would be greatly appreciated if you can specify the exact steps that I need to perform in order to replicate the problem. Thank you in advance.
I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Progress Telerik
after loading full data to rad virtual grid with pagination is enabled , while pressing arrow down button to select row in the grid, at last row when i pressing arrow down visual studio throws an error, i attached an image for the error description.
telerik demo app also contain this error.
Thank you for writing.
I have logged it in our feedback portal. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.
I have also updated your Telerik points.
Currently, due to the specificity of the issue, I am unable to suggest a suitable solution. We will do our best to introduce a fix as soon as possible.
I hope this information helps. Should you have further questions I would be glad to help.Regards,
Dess
Progress Telerik