summaryrefslogtreecommitdiff
path: root/demos/quickstart
diff options
context:
space:
mode:
authorxue <>2006-01-15 02:47:00 +0000
committerxue <>2006-01-15 02:47:00 +0000
commit2e5e2892506c87cf33aa8afb7681df3e6e646390 (patch)
tree80129a319e5eaf5e892c3c2d64b2d1d6bfe2ab24 /demos/quickstart
parent9e6f707e8e4614ca0d7dae698b7a0a9ffe7bd2da (diff)
Diffstat (limited to 'demos/quickstart')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.page9
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.php2
2 files changed, 8 insertions, 3 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();
}
}