diff options
3 files changed, 10 insertions, 16 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.page b/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.page index e25525f8..d2b94084 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.page @@ -5,17 +5,22 @@  <com:TDataList
  	ID="DataList"
  	RepeatColumns="2"
 +	RepeatDirection="Horizontal"
  	ItemStyle.BackColor="blue"
  	ItemStyle.Font.Italic="true"
  	ItemStyle.ForeColor="white"
 -	SelectedItemStyle.BackColor="white"
 -	SelectedItemStyle.ForeColor="blue"
 +	AlternatingItemStyle.BackColor="green"
 +	SelectedItemStyle.BackColor="red"
  	CellPadding="4">
  <prop:ItemTemplate>
  <%#$this->Parent->DataItem['name']%>
  </prop:ItemTemplate>
 +<prop:AlternatingItemTemplate>
 +<%#$this->Parent->DataItem['name']%>
 +</prop:AlternatingItemTemplate>
 +
  </com:TDataList>
  </com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.php b/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.php index 0f72dbf5..43b2f004 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.php +++ b/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.php @@ -17,7 +17,7 @@ class Sample1 extends TPage  	{
  		parent::onLoad($param);
  		$this->DataList->DataSource=$this->getDataSource();
 -		$this->DataList->SelectedItemIndex=1;
 +		$this->DataList->SelectedItemIndex=2;
  		$this->DataList->dataBind();
  	}
  }
 diff --git a/framework/Web/UI/WebControls/TDataList.php b/framework/Web/UI/WebControls/TDataList.php index a3d76eca..ebaf9568 100644 --- a/framework/Web/UI/WebControls/TDataList.php +++ b/framework/Web/UI/WebControls/TDataList.php @@ -83,8 +83,8 @@ Prado::using('System.Web.UI.WebControls.TRepeatInfo');   * TDataList raises an {@link onItemCommand ItemCommand} whenever a button control
   * within some TDataList item raises a <b>Command</b> event. If the command name
   * is one of the followings: 'edit', 'update', 'select', 'delete', 'cancel' (case-insensitive),
 - * another event will also be raised. For example, if the command name is 'select',
 - * then the new event is {@link onSelectCommand SelectCommand}.
 + * another event will also be raised. For example, if the command name is 'edit',
 + * then the new event is {@link onEditCommand SelectCommand}.
   *
   * @author Qiang Xue <qiang.xue@gmail.com>
   * @version $Revision: $  $Date: $
 @@ -676,17 +676,6 @@ class TDataList extends TBaseDataList implements INamingContainer, IRepeatInfoUs  	}
  	/**
 -	 * Raises <b>SelectCommand</b> event.
 -	 * This method is invoked when a child control of the data list
 -	 * raises an <b>Command</b> event and the command name is 'select' (case-insensitive).
 -	 * @param TDataListCommandEventParameter event parameter
 -	 */
 -	protected function onSelectCommand($param)
 -	{
 -		$this->raiseEvent('SelectCommand',$this,$param);
 -	}
 -
 -	/**
  	 * Raises <b>EditCommand</b> event.
  	 * This method is invoked when a child control of the data list
  	 * raises an <b>Command</b> event and the command name is 'edit' (case-insensitive).
  | 
