Subgrid OnLoad 이벤트 이벤트에 이벤트 처리기를 추가합니다.
지원되는 그리드 형식
읽기 전용 및 편집 가능한 표
Syntax
gridContext.addOnLoad(myFunction);
매개 변수
| 이름 | 유형 | 필수 | Description |
|---|---|---|---|
myFunction |
함수 참조 | Yes | subgrid가 로드될 때 실행할 함수입니다. 함수는 이벤트 처리기 파이프라인의 맨 아래에 추가됩니다. 실행 컨텍스트는 자동으로 함수에 첫 번째 매개 변수로 전달됩니다. 자세한 내용은 실행 컨텍스트 를 참조하세요. |
비고
가져오 gridContext려면 그리드 컨텍스트 가져오기를 참조하세요.
Example
Contacts subgrid OnLoad 이벤트에 myContactsGridOnloadFunction 함수를 추가합니다.
function myFunction(executionContext) {
let formContext = executionContext.getFormContext(); // get the form context
let gridContext = formContext.getControl("Contacts");// get the grid context
let myContactsGridOnloadFunction = function () { console.log("Contacts Subgrid OnLoad event occurred") };
gridContext.addOnLoad(myContactsGridOnloadFunction);
}