Allows TActiveDropDownList and TActiveListBox to add new options during callback response. New options can only be added after the {@link TControl::onLoad OnLoad} event. The {@link getListHasChanged ListHasChanged} property is true when the list items has changed. The control responsible for the list needs to repopulate the client-side options.
Since: 3.1
Inheritance: extends Prado\Collections\TListItemCollection
Example #1
0
 /**
  * Creates a collection object to hold list items. A specialized
  * TActiveListItemCollection is created to allow the drop down list options
  * to be added.
  * This method may be overriden to create a customized collection.
  * @return TActiveListItemCollection the collection object
  */
 protected function createListItemCollection()
 {
     $collection = new TActiveListItemCollection();
     $collection->setControl($this);
     return $collection;
 }