jQWidgets Forums

jQuery UI Widgets Forums Grid EnsureVisible/scroll into view

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Sloth 12 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • EnsureVisible/scroll into view #22346

    Peter Sloth
    Participant

    Hi

    I have some navigation buttons above my grid. When I click the “Last” button the last row in the grid is selected as you would expect. Unfortunately the vertical scrollbar doesn’t scroll down so that the user can see the selected row.

    How can this be fixed?

    $("#Last").on('click', function (event){
    var datainformations = $('#grid').jqxGrid('getdatainformation');
    var rowscounts = datainformations.rowscount;
    $('#grid').jqxGrid('selectrow', rowscounts-1);
    });

    Thanks

    Best regards
    Peter

    EnsureVisible/scroll into view #22361

    Peter Stoev
    Keymaster

    Hi,

    The selection methods will not scroll automatically. However, there are methods in the Grid which you can use for scrolling to a Row or to a Cell. I suggest you to look at the Online demos about the Rows and Cells selection.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    EnsureVisible/scroll into view #22402

    Peter Sloth
    Participant

    Hi

    I found it!

    thanks a lot

    Bests
    Peter

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.