From 5682cc56a4c703408dd927bda629ab36824dae09 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 1 Feb 2006 04:21:19 +0000 Subject: Updated TDataList tutorial. --- framework/Web/UI/WebControls/TDataList.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/WebControls/TDataList.php') diff --git a/framework/Web/UI/WebControls/TDataList.php b/framework/Web/UI/WebControls/TDataList.php index 819febd6..e3748d22 100644 --- a/framework/Web/UI/WebControls/TDataList.php +++ b/framework/Web/UI/WebControls/TDataList.php @@ -34,8 +34,13 @@ Prado::using('System.Web.UI.WebControls.TRepeatInfo'); * then the corresponding content will be displayed alternatively with that * in {@link setItemTemplate ItemTemplate}. The content in * {@link setSeparatorTemplate SeparatorTemplate}, if not empty, will be - * displayed between items. All these templates are associated with styles that - * may be applied to the corresponding generated items. For example, + * displayed between items. Besides the above templates, there are two additional + * templates, {@link setEditItemTemplate EditItemTemplate} and + * {@link setSelectedItemTemplate SelectedItemTemplate}, which are used to display + * items that are in edit and selected mode, respectively. + * + * All these templates are associated with styles that may be applied to + * the corresponding generated items. For example, * {@link getAlternatingItemStyle AlternatingItemStyle} will be applied to * every alternating item in the data list. * @@ -81,10 +86,10 @@ Prado::using('System.Web.UI.WebControls.TRepeatInfo'); * The event mainly informs the server side that the end-user has made a selection. * * TDataList raises an {@link onItemCommand OnItemCommand} whenever a button control - * within some TDataList item raises a Command event. If the command name + * within some TDataList item raises a OnCommand 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 'edit', - * then the new event is {@link onEditCommand OnSelectCommand}. + * then the new event is {@link onEditCommand OnEditCommand}. * * @author Qiang Xue * @version $Revision: $ $Date: $ -- cgit v1.2.3