Prado\Web\UI\WebControls\TDropDownListColumn::addParsedObject PHP Method

addParsedObject() public method

This method adds only {@link TListItem} objects into the {@link getItems Items} collection. All other objects are ignored.
public addParsedObject ( $object )
    public function addParsedObject($object)
    {
        // Do not add items from template if items are loaded from viewstate
        if (!$this->_stateLoaded && $object instanceof TListItem) {
            $object->setSelected(false);
            $index = $this->_listControl->getItems()->add($object);
        }
    }