diff options
author | ctrlaltca <> | 2012-06-25 16:12:21 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-06-25 16:12:21 +0000 |
commit | 511b94d7bce011a09522fe591dc931a41f69618e (patch) | |
tree | 3b1e16993f23297a8054518a3f0dcf3ca6dbd16e /demos/quickstart/protected/pages | |
parent | f44ca8c02c74cdf74f72723492af7db47597b2b4 (diff) |
added quickstart example for TActiveListBox with multiple selection enabled
Diffstat (limited to 'demos/quickstart/protected/pages')
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.page | 26 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.php | 5 |
2 files changed, 31 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.page index c14b88c6..218139a5 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.page @@ -105,4 +105,30 @@ Listbox causing validation: </table>
+<h2>List Boxes in Multiple Selection Mode</h2>
+<i>Use Ctrl + Mouse Click to change selection</i>
+<br/>
+
+<table class="sampletable">
+
+<tr>
+<td class="samplenote">
+Multiple items can be selected together:
+ </td>
+ <td class="sampleaction">
+ <com:TActiveListBox
+ ID="MDropdownList"
+ SelectionMode="Multiple"
+ OnSelectedIndexChanged="multiSelectionChanged"
+ >
+ <com:TListItem Value="value 1" Text="item 1" />
+ <com:TListItem Value="value 2" Text="item 2" />
+ <com:TListItem Value="value 3" Text="item 3" />
+ <com:TListItem Value="value 4" Text="item 4" />
+</com:TActiveListBox>
+<com:TActiveLabel ID="MSelectionResult" ForeColor="red" />
+ </td>
+</tr>
+
+</table>
</com:TContent>
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.php index 5ec96613..795e3eca 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.php +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveListBox/Home.php @@ -31,6 +31,11 @@ class Home extends TPage $this->collectSelectionResult($sender,$this->SelectionResult);
}
+ public function multiSelectionChanged($sender,$param)
+ {
+ $this->collectSelectionResult($sender,$this->MSelectionResult);
+ }
+
public function buttonClicked($sender, $param)
{
$data=array();
|