TabSheetDataSource.getScrollState

Syntax

getScrollState = function ()

Description

The getScrollState method returns scrollbar position in a table.

Example

To execute the example, the HTML page must contain the GridBox component named grid (see Example of Placing the GridBox Component section.

Add a button in the BODY tag:

<button onclick="loadData()">Load Data</button>

Add a function to be executed on clicking the button:

function loadData() {

    prxMbService.setViewSettings(prxReport);  

    grid.refresh();

    var tSource = grid.getTabSheet().getModel().getDataSource()

    console.log(tSource.getScrollState());

};

After executing the example, clicking the button returns in the console the data about scrollbar position in the table.

See also:

TabSheetDataSource