Scroll to Row

9 posts, 1 answers
  1. Ingo
    Ingo avatar
    21 posts
    Member since:
    Apr 2016

    Posted 01 Jul 2016 Link to this post

    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

     

  2. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3451 posts

    Posted 01 Jul 2016 Link to this post

    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.
  3. Ingo
    Ingo avatar
    21 posts
    Member since:
    Apr 2016

    Posted 04 Jul 2016 Link to this post

    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

  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3451 posts

    Posted 04 Jul 2016 Link to this post

    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 2016.2.503) 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.
  5. Ingo
    Ingo avatar
    21 posts
    Member since:
    Apr 2016

    Posted 05 Jul 2016 Link to this post

    Hello Dess,

    After the update the proposed solution works as required.

    Thank You again!

    Regards,

    Ingo

  6. Anujith
    Anujith avatar
    3 posts
    Member since:
    Jul 2012

    Posted 24 Oct 2017 Link to this post

    rad virtual grid showing an error in last row while pressing arrow down button when pagination is enabled
  7. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3451 posts

    Posted 25 Oct 2017 Link to this post

    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.
  8. Anujith
    Anujith avatar
    3 posts
    Member since:
    Jul 2012

    Posted 26 Oct 2017 Link to this post

    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.

  9. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3451 posts

    Posted 30 Oct 2017 Link to this post

    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.
Back to Top