summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-01-10 17:37:42 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-01-10 17:37:42 +0100
commitd658070b873f2f0cf8e35ea73cfa1e39e05e6750 (patch)
treec601da8eeb8877af428a0fba86d75abd5ade6781 /demos/quickstart/protected
parent3b862bfb3e8e89a61c1219038cc1b5979271196e (diff)
Added quickstart demo for TActiveRatingList
Diffstat (limited to 'demos/quickstart/protected')
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveRatingList.page32
-rwxr-xr-xdemos/quickstart/protected/pages/ActiveControls/Home.page18
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.page71
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.php9
4 files changed, 121 insertions, 9 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveRatingList.page b/demos/quickstart/protected/pages/ActiveControls/ActiveRatingList.page
new file mode 100644
index 00000000..7b6fb83d
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveRatingList.page
@@ -0,0 +1,32 @@
+<com:TContent ID="body" >
+
+<h1>TActiveRatingList</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveRatingList" />
+
+<p class="block-content">
+<tt>TActiveRatingList</tt> is the active counterpart to the original <tt>TRatingList</tt> control.
+</p>
+
+<p class="block-content">
+The <tt>AutoPostBack</tt> property is set to true by default.
+Thus, when a radio button is clicked a <tt>OnCallback</tt> event is
+raised after <tt>OnSelectedIndexChanged</tt> event.
+</p>
+
+<p class="block-content">
+With <tt>ActiveControl.EnableUpdate</tt>
+set to true (default is true), changes to the selection will be updated
+on the client side.
+</p>
+
+<p class="block-content">
+List items can <b>not</b> be changed dynamically during a callback request.
+</p>
+
+<p class="block-content">
+Please refer to the original documentation of <a href="?page=Controls.List">TRatingList</a> for usage.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveRatingList.Home" />
+
+</com:TContent>
diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page
index 9586f421..6def313a 100755
--- a/demos/quickstart/protected/pages/ActiveControls/Home.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Home.page
@@ -104,11 +104,6 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
</li>
<li>
- <a href="">TActiveRatingList</a>
- is an EXPERIMENTAL class that displays clickable images that represent a TRadioButtonList.
- </li>
-
- <li>
<a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
represents a text input field on a Web page.
It can collect single-line, multi-line or password text input from users.
@@ -144,6 +139,11 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
TActiveRadioButtonList displays a group of radiobuttons. Each radio button
can perform a callback request.
</li>
+
+ <li>
+ <a href="?page=ActiveControls.ActiveRatingList">TActiveRatingList</a>
+ is an EXPERIMENTAL class that displays clickable images that represent a TRadioButtonList.
+ </li>
</ul>
<h2 id="134001">Active Data Controls</h2>
@@ -201,9 +201,9 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
monitors (using a timer) an attribute of an HTML element and triggers a callback request
when the attribute value changes.
</li>
-
+
<li>
- <a href="?page=ActiveControls.DragDrop">TDropContainer &amp; TDraggable</a> represents drag and drop containers.
+ <a href="?page=ActiveControls.DragDrop">TDropContainer &amp; TDraggable</a> represents drag and drop containers.
The former will make its child controls "draggable" while the latter will raise a callback when a draggable
control is dropped on it.
</li>
@@ -357,7 +357,7 @@ if Javascript was disabled on the client's browser.</p>
</td>
<td>Yes</td><td>No</td>
</tr>
-
+
<tr><td>
<a href="?page=ActiveControls.DragDrop">TDropContainer</a>
</td>
@@ -370,7 +370,7 @@ if Javascript was disabled on the client's browser.</p>
<td>No</td><td>No</td>
</tr>
-
+
</table>
<h2 id="128036">Active Control Basic Infrastructure Classes</h2>
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.page
new file mode 100644
index 00000000..332ccb63
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.page
@@ -0,0 +1,71 @@
+<com:TContent ID="body">
+<h1>TActiveRatingList Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+A simple TActiveRatingList and its caption:
+</td><td class="sampleaction">
+
+<com:TLabel ID="label1" Text="Rate it:" />
+<com:TActiveRatingList CaptionID="label1">
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" />
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Excellent" />
+</com:TActiveRatingList>
+
+</td></tr>
+
+<tr><td class="samplenote">
+TActiveRatingList in vertical mode, SelectedIndex=2
+</td><td class="sampleaction">
+
+<com:TLabel ID="label2" Text="Rate it:" />
+<com:TActiveRatingList CaptionID="label2" SelectedIndex="2" RepeatDirection="Vertical" Style="caption-side: right;">
+ <com:TListItem Text="Poor" />
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" />
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Excellent" />
+ <com:TListItem Text="Super" />
+</com:TActiveRatingList>
+
+</td></tr>
+
+<tr><td class="samplenote">
+TActiveRatingList with RatingStyle=blocks, AutoPostback=true, SelectedValue=Good
+</td><td class="sampleaction">
+
+<com:TLabel ID="label3" Text="Rate it:" />
+<com:TActiveRatingList ID="Rating3" CaptionID="label3" RatingStyle="blocks" SelectedValue="Good" AutoPostBack="true" OnSelectedIndexChanged="rating3_selectionChanged">
+ <com:TListItem Text="Poor" />
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" />
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Excellent" />
+ <com:TListItem Text="Super" />
+</com:TActiveRatingList>
+<br/>
+A label to check callback results: <com:TActiveLabel ID="labelResult3" />
+
+</td></tr>
+
+<tr><td class="samplenote">
+TActiveRatingList with AllowInput=false, Rating=4.6
+</td><td class="sampleaction">
+
+<com:TLabel ID="label4" Text="Rate it:" />
+<com:TActiveRatingList CaptionID="label4" AllowInput="false" Rating="4.6">
+ <com:TListItem Text="Poor" />
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" />
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Excellent" />
+ <com:TListItem Text="Super" />
+</com:TActiveRatingList>
+
+</td></tr>
+
+</table>
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.php
new file mode 100644
index 00000000..5e8ed1bd
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.php
@@ -0,0 +1,9 @@
+<?php
+
+class Home extends TPage
+{
+ protected function rating3_selectionChanged($sender, $param)
+ {
+ $this->labelResult3->Text=$this->Rating3->SelectedValue;
+ }
+} \ No newline at end of file