diff options
author | wei <> | 2007-01-17 12:48:20 +0000 |
---|---|---|
committer | wei <> | 2007-01-17 12:48:20 +0000 |
commit | 0b0d95eb8df416feb8a54fd517957d08b0cf20d2 (patch) | |
tree | 3c5d91317cf9c9b3a5f4e7fb6ce31dce2a14bba1 /tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php | |
parent | 912dc30b43330a3e99a3e1f947ff14de108a3701 (diff) |
add dynamic callback repeater test.
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php b/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php new file mode 100644 index 00000000..729a87dc --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php @@ -0,0 +1,23 @@ +<?php
+
+class DynamicRepeaterDataTest extends TPage
+{
+ function button_clicked($sender, $param)
+ {
+ $this->_repeater->dataSource = array(1,2,3);
+ $this->_repeater->dataBind();
+ }
+
+ function button_callback($sender, $param)
+ {
+ $this->panel1->render($param->NewWriter);
+ }
+
+ function rpt_button_clicked($sender, $param)
+ {
+ $item = $sender->NamingContainer;
+ $item->label1->Text = $sender->Text;
+ }
+}
+
+?>
\ No newline at end of file |