PL-400 · Question #358
PL-400 Question #358: Real Exam Question with Answer & Explanation
The correct answer is D: Subgrid OnLoad. The Subgrid OnLoad event fires both when the parent form initially loads (causing all subgrids to load) and when the subgrid is refreshed due to sorting, filtering, or paging. This makes it the correct single event handler to cover both scenarios described. Grid OnSave (A) does n
Question
You are developing a model-driven app using JavaScript. You need to configure the app to display a dialog box when a form is opened or when a grid on a form is sorted. What should you use?
Options
- AGrid OnSave
- BGrid OnRecordSelect
- CGrid OnChange
- DSubgrid OnLoad
Explanation
The Subgrid OnLoad event fires both when the parent form initially loads (causing all subgrids to load) and when the subgrid is refreshed due to sorting, filtering, or paging. This makes it the correct single event handler to cover both scenarios described. Grid OnSave (A) does not exist as a standard subgrid event. Grid OnRecordSelect (B) fires only when a user clicks a row, not on sort. Grid OnChange (C) is not a valid standard grid event in model-driven apps. Subgrid OnLoad is the supported JavaScript event that addresses both the form-open and grid-sort triggers.
Community Discussion
No community discussion yet for this question.