code/panels/DashboardGridFieldPanel.php
public function getConfiguration() {
		$fields = parent::getConfiguration();

		$grids = array ();
		if($this->SubjectPage()->exists()) {
			$grids = $this->getGridFieldsFor($this->SubjectPage());
		}
		$fields->push(TextField::create("Count", _t('DashbordModelAdmin.COUNT','Number of records to display')));

		$fields->push(DropdownField::create("SubjectPageID", _t('Dashboard.PAGE','Page'), $this->getHierarchy(0))
			->addExtraClass('no-chzn')
			->setAttribute('data-lookupurl', $this->Link("gridsforpage"))
			->setEmptyString("--- "._t('Dashboard.PLEASESELECT','Please select')." ---")
			->setTemplate("DashboardDropdownField")
		);
		$fields->push(DropdownField::create("GridFieldName", _t('Dashboard.GRIDFIELDNAME','GridField name'), $grids)
			->addExtraClass('no-chzn')
		);

		return $fields;
	}
public function getConfiguration() {
		$fields = parent::getConfiguration();

		$grids = array ();
		if($this->SubjectPage()->exists()) {
			$grids = $this->getGridFieldsFor($this->SubjectPage());
		}
		$fields->push(TextField::create("Count", _t('DashbordModelAdmin.COUNT','Number of records to display')));

		$fields->push(DropdownField::create("SubjectPageID", _t('Dashboard.PAGE','Page'), $this->getHierarchy(0))
			->addExtraClass('no-chzn')
			->setAttribute('data-lookupurl', $this->Link("gridsforpage"))
			->setEmptyString("--- "._t('Dashboard.PLEASESELECT','Please select')." ---")
			->setTemplate("DashboardDropdownField")
		);
		$fields->push(DropdownField::create("GridFieldName", _t('Dashboard.GRIDFIELDNAME','GridField name'), $grids)
			->addExtraClass('no-chzn')
		);

		return $fields;
	}
Gets the fields to configure the panel settings

@return FieldList