Prado\Web\UI\WebControls\TWizard::dataListItemDataBound PHP Method

dataListItemDataBound() public method

This method is used internally by wizard. It mainly configures the buttons in the sidebar datalist.
public dataListItemDataBound ( $sender, $param )
    public function dataListItemDataBound($sender, $param)
    {
        $item = $param->getItem();
        $itemType = $item->getItemType();
        if ($itemType === 'Item' || $itemType === 'AlternatingItem' || $itemType === 'SelectedItem' || $itemType === 'EditItem') {
            if (($button = $item->findControl(self::ID_SIDEBAR_BUTTON)) !== null) {
                $step = $item->getData();
                if ($this->getStepType($step) === TWizardStepType::Complete) {
                    $button->setEnabled(false);
                }
                if (($title = $step->getTitle()) !== '') {
                    $button->setText($title);
                } else {
                    $button->setText($step->getID(false));
                }
                $index = $this->getWizardSteps()->indexOf($step);
                $button->setCommandName(self::CMD_MOVETO);
                $button->setCommandParameter("{$index}");
            }
        }
    }
TWizard