Magento
M70-201 · Question #26
Given a grid interface that extends from Mage_Adminhtml_Block_Widget_Grid, which of the following methods could you override to allow data to be loaded from a custom data collection?
The correct answer is B. _prepareCollection. See the full explanation below for the reasoning.
Question
Given a grid interface that extends from Mage_Adminhtml_Block_Widget_Grid, which of the following methods could you override to allow data to be loaded from a custom data collection?
Options
- A_prepareDataModel
- B_prepareCollection
- C_initDataModel
- D_initGrid
How the community answered
(17 responses)- A18% (3)
- B71% (12)
- C6% (1)
- D6% (1)
Community Discussion
No community discussion yet for this question.