Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Navigating to a selected row on a multipage grid
posted

I have a two-page grid and when I add a new row, it gets placed at the end of the grid.  That's fine, but I would like the new item to be selected -- which works as well.  The problem is that I would like to have to grid scroll to that item, and I am not having any luck with that.

I have tried navigateTo() with the primary key reference into the method.  I have also tried the verticalScroll.scrollPosition set equal to the primary key and also no change.  The grid refreshes to the first page and while the row is selected, the grid does not scroll to it.  Any ideas?

  Ted

  • 1560
    Offline posted

    Hello,

    I have been looking into your question and prepared a small sample based on the provided description. On button click a new row would be added and selected. Then in order to bring it into view, an approach I could suggest, having in mind that it would be added as a last record, is to set the grid's page input to the last one and then call navigateTo()  method.

    My sample for your reference could be found here. Please test it on your side and let me know if I may be of any further assistance.

    Sincerely,
    Teodosia Hristodorova
    Software Developer