This is a migrated thread and some comments may be shown as answers.

Scroll to Row

8 Answers 300 Views
VirtualGrid
This is a migrated thread and some comments may be shown as answers.
LIMA Factory
Top achievements
Rank 1
LIMA Factory asked on 01 Jul 2016, 10:24 AM

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

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Jul 2016, 12:11 PM
Hello Ingo,

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
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
LIMA Factory
Top achievements
Rank 1
answered on 04 Jul 2016, 07:44 AM

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

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 04 Jul 2016, 12:23 PM
Hello 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
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
LIMA Factory
Top achievements
Rank 1
answered on 05 Jul 2016, 07:18 AM

Hello Dess,

After the update the proposed solution works as required.

Thank You again!

Regards,

Ingo

0
Anujith
Top achievements
Rank 1
answered on 24 Oct 2017, 09:33 AM
rad virtual grid showing an error in last row while pressing arrow down button when pagination is enabled
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Oct 2017, 02:02 PM
Hello, Anujith,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Anujith
Top achievements
Rank 1
answered on 26 Oct 2017, 05:14 AM

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.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 30 Oct 2017, 09:13 AM
Hello, Anujith,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
VirtualGrid
Asked by
LIMA Factory
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
LIMA Factory
Top achievements
Rank 1
Anujith
Top achievements
Rank 1
Share this question
or