Scroll to Row

5 posts, 1 answers
  1. Ingo
    Ingo avatar
    19 posts
    Member since:
    Apr 2016

    Posted 01 Jul 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
    Admin
    Dess avatar
    1609 posts

    Posted 01 Jul 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. UI for WinForms is Visual Studio 2017 Ready
  4. Ingo
    Ingo avatar
    19 posts
    Member since:
    Apr 2016

    Posted 04 Jul 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

  5. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 04 Jul 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.
  6. Ingo
    Ingo avatar
    19 posts
    Member since:
    Apr 2016

    Posted 05 Jul Link to this post

    Hello Dess,

    After the update the proposed solution works as required.

    Thank You again!

    Regards,

    Ingo

Back to Top
UI for WinForms is Visual Studio 2017 Ready