jQWidgets Forums

jQuery UI Widgets Forums Grid jqxgrid with ensurerowvisible and groupable

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • marchutten
    Participant

    I use the jqxGrid (3.0.2) that contains more rows than visible on the screen. Via javascript I try to select a the last row.

    Using this function

    function GotoEnd() {
    var datainformations = $(‘#jqxGrid’).jqxGrid(‘getdatainformation’);
    var rowscounts = datainformations.rowscount;
    $(“#jqxGrid”).jqxGrid(‘selectrow’, rowscounts – 1);
    $(“#jqxGrid”).jqxGrid(‘ensurerowvisible’, rowscounts – 1);
    }

    This functions does work, (selects the last row and makes the selection visible) if grouping is disabled, but does not work if grouping is enabled (selection works but will not scroll to selected row).

    How should I select and ensure visibility of the last row in case of grouping.


    Dimitar
    Participant

    Hello marchutten,

    This method ensurerowvisible works when the grid is groupable but not when any groups have been applied. Please make sure you are using the latest version of jQWidgets (3.0.3). You should also make sure that you pass a bound index, not a visible index. Bound index is the index of a Row within the data source. When the Grid is Grouped i.e rows are grouped, the first displayed row is not necessary the first row in the data source so its bound index is most probably not 0.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.