SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onScrollToBottom  event

포커스 행의 위치가 마지막 행에 도달했을 때 발생한다. 

이 이벤트 핸들러 내에서 데이터셋을 추가로 로드하는 방식을 구현할 수 있다. actionByUser(v1.4.5) 파라미터를 이용하여 사용자에 의해 발생했는지 정렬,포커스이동 등 api에 의해 이동됬는지 구분할수 있다. 

function onScrollToBottom (grid: GridBase, actionByUser: Boolean);
Returns
Void
Parameters
grid - GridBase.
actionByUser - Boolean.
Code -1
    grid.onScrollToBottom = function (grid, actionByUser) {
        if (dataset.rowCount() < maxRows) {
            // load data...
        }
    }
See Also
focusedIndex
focusedRowIndex
topIndex
Examples
Lazy Data Loading