diff options
author | Christophe.Boulain <> | 2010-02-15 09:20:35 +0000 |
---|---|---|
committer | Christophe.Boulain <> | 2010-02-15 09:20:35 +0000 |
commit | d860219f366a8fbe63b03d26c69525d4e6bd4f3a (patch) | |
tree | 6520a9a0a70a941d122de10d8f5ae9e3883a0ac6 /demos/quickstart/protected/pages | |
parent | 94e94e0a8566f23d16658a04c55b0bbfdd6689aa (diff) |
Merge from r2765 (and some others) 3.1
Added TActiveTableRow QST page
Corrected an uninitialized array in TScaffoldBase
Diffstat (limited to 'demos/quickstart/protected/pages')
3 files changed, 48 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index 4897226c..d23f689f 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -85,6 +85,12 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria </li>
<li>
+ * <a href="?page=ActiveControls.ActiveTableRow">TActiveTableRow and TActiveTableCell</a>
+ represents a table row (or cell) which can be updated on callback, and can raise a callback
+ when clicked.
+ </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.
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.page new file mode 100644 index 00000000..e96a22a5 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.page @@ -0,0 +1,20 @@ +<com:TContent ID="body">
+<!-- $Id: Home.page 1650 2007-01-24 06:55:32Z wei $ -->
+<h1>TActiveTableRow and TActiveTableCellSamples</h1>
+
+<com:TTable CssClass="sampletable">
+ <com:TActiveTableRow id="row1" CssClass="sampletable">
+ <com:TActiveTableCell id="r1c1" OnCellSelected="clickCell">Click to change cell content</com:TActiveTableCell>
+ <com:TActiveTableCell id="r1c2"OnCellSelected="clickCell">Click to change cell content</com:TActiveTableCell>
+ </com:TActiveTableRow>
+ <com:TActiveTableRow id="row2" CssClass="sampletable" OnRowSelected="clickRow">
+ <com:TActiveTableCell id="r2c1">Click to change row content</com:TActiveTableCell>
+ <com:TActiveTableCell id="r2c2">Click to change row content</com:TActiveTableCell>
+ </com:TActiveTableRow>
+
+</com:TTable>
+
+<com:TActiveLabel id="lblResult"/>
+<com:TJavascriptLogger />
+
+<div class="last-modified">$Id: Home.page 1650 2007-01-24 06:55:32Z wei $</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php new file mode 100644 index 00000000..b056eba8 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php @@ -0,0 +1,22 @@ +<?php
+
+// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
+class Home extends TPage
+{
+
+ public function clickCell ($sender, $param)
+ {
+ $sender->Text .= "<br/>Clicked";
+ $this->lblResult->Text='You clicked on cell #'.$param->SelectedCellIndex.' with id='.$sender->id;
+ $sender->render($param->NewWriter);
+ }
+
+ public function clickRow ($sender, $param)
+ {
+ $sender->BackColor="yellow";
+ $this->lblResult->Text='You clicked on row #'.$param->SelectedRowIndex.' with id='.$sender->id;
+ $sender->render($param->NewWriter);
+ }
+}
+
+?>
\ No newline at end of file |