summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.page16
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php23
2 files changed, 39 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.page b/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.page
new file mode 100644
index 00000000..913f6a17
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.page
@@ -0,0 +1,16 @@
+<com:TForm>
+<h1>Dynamic Repeater Data Test</h1>
+<com:TActiveButton Text="Click Me!" OnClick="button_clicked" OnCallback="button_callback"/>
+
+<com:TActivePanel ID="panel1" ActiveControl.EnableUpdate="true">
+<com:TRepeater id="_repeater">
+ <prop:ItemTemplate>
+ <com:TActiveButton Text="Button <%# $this->DataItem %>" OnClick="Page.rpt_button_clicked" />
+ <com:TActiveLabel ID="label1" />
+ </prop:ItemTemplate>
+</com:TRepeater>
+</com:TActivePanel>
+
+<com:TJavascriptLogger />
+
+</com:TForm> \ No newline at end of file
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