summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes3
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActivePanel.page24
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Home.page2
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page24
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php21
5 files changed, 73 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes
index bd0e3277..a2b5cfca 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1281,6 +1281,7 @@ demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page -text
demos/quickstart/protected/pages/ActiveControls/ActivePager.page -text
+demos/quickstart/protected/pages/ActiveControls/ActivePanel.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page -text
demos/quickstart/protected/pages/ActiveControls/AutoComplete.page -text
@@ -1315,6 +1316,8 @@ demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.p
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page -text
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page
new file mode 100644
index 00000000..dcfbc312
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page
@@ -0,0 +1,24 @@
+<com:TContent ID="body" >
+
+<h1>TActivePanel</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActivePanel" />
+
+<p class="block-content">
+
+<tt>TActivePanel</tt> is the <tt>TPanel</tt> active control counterpart.
+<tt>TActivePanel</tt> allows the client-side panel contents to be updated during a
+callback response using the <tt>render</tt> method.
+Example: Assume $param is an instance of <tt>TCallbackEventParameter</tt> attached to
+the <tt>OnCallback</tt> event of a <tt>TCallback</tt> with ID "callback1", and
+"panel1" is the ID of a <tt>TActivePanel</tt>.
+
+<com:TTextHighlighter Language="text" CssClass="source block-content">
+function callback1_requested($sender, $param)
+{
+ $this->panel1->render($param->getNewWriter());
+}
+</com:TTextHighlighter>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActivePanel.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page
index 6f403a42..93b5b6eb 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Home.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Home.page
@@ -71,7 +71,7 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
</li>
<li>
- * <a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
+ <a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
represents a container for other controls on a Web page. In HTML,
it is displayed as a &lt;div&gt; element. The panel's contents
can be replaced during a callback request.
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page
new file mode 100644
index 00000000..1fb7ca23
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page
@@ -0,0 +1,24 @@
+<com:TContent ID="body">
+
+<h1>TActivePanel Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+Active panel updated on callback:
+</td><td class="sampleaction">
+<com:TActivePanel ID="panel1" BackColor="#CCFFCC" DefaultButton="button1" Width="400px">
+This is panel content
+<br/>a checkbox: <com:TCheckBox ID="check1"/>
+<br/>a textbox: <com:TTextBox ID="txt1"/>
+<br/>a label: <com:TLabel ID="label1"/>
+<br/><com:TActiveButton ID="button1" Text="click me" OnCallback="buttonClicked" />
+<br/>
+When you press the button, the panel contents will change. Note that out of the
+panel and the button, all the other controls are not active but gets updated
+anyway since they are placed inside the active panel.
+</com:TActivePanel>
+</td></tr>
+</table>
+<com:TJavascriptLogger />
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php
new file mode 100644
index 00000000..ae174f59
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php
@@ -0,0 +1,21 @@
+<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $this->check1->Checked = !$this->check1->Checked;
+ if($this->txt1->Text=="")
+ $this->txt1->Text="changes happens";
+ else
+ $this->txt1->Text="";
+ if($this->label1->Text=="")
+ $this->label1->Text="label has changed, too";
+ else
+ $this->label1->Text="";
+
+ $this->panel1->render($param->NewWriter);
+ }
+}
+
+?> \ No newline at end of file